cli-anything-qgis

Automate QGIS project management and spatial data operations via terminal commands.

46.8k|4.4k|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-qgis-hkuds
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-qgis
Source: https://github.com/HKUDS/CLI-Anything/tree/main/QGIS/agent-harness/cli_anything/qgis/skills
Command: npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-qgis-hkuds

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires qgis_process, PyQGIS, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables users to inspect, modify, and export QGIS projects directly from the terminal, streamlining spatial data workflows and automation.

Core Features & Use Cases

  • Create, open, save, and analyze QGIS project files with commands for project management.
  • Add, list, and remove spatial layers and features programmatically.
  • Generate print layouts and export maps as PDFs or images.
  • Run spatial processing algorithms and inspect session history for complex GIS workflows.
  • Automate repetitive GIS tasks such as data editing, layout creation, and exports in a scripting environment.

Quick Start

Use this skill to create a new project named 'demo.qgz' and add a point layer called 'places' with attributes.

Frequently Asked Questions about cli-anything-qgis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate QGIS project management and map exporting from the command line?

You can automate QGIS project management and map exporting from the command line by using terminal commands and PyQGIS to script project creation, data editing, layout generation, and PDF exports.

Can I add and remove spatial layers in a QGIS project programmatically?

Yes, you can add and remove spatial layers programmatically by executing spatial operations through qgis_process, which allows you to add, list, and remove features in your QGIS projects.

Do I need Python and PyQGIS to run spatial operations and handle QGIS files?

Yes, you need Python 3.10+ and PyQGIS to execute spatial operations and handle QGIS project files, as the automation relies on the qgis_process framework for terminal-based workflows.

What is the best way to generate print layouts and export maps as PDFs using command-line tools?

The best way to generate print layouts and export maps as PDFs using command-line tools is by scripting the layout creation and export processes with PyQGIS commands in a terminal environment.

How does qgis_process handle complex spatial data workflows and session history?

qgis_process handles complex spatial data workflows by running spatial processing algorithms and allowing users to inspect session history directly, streamlining repetitive GIS tasks in a scripting environment.