cli-anything-qgis

Inspect and modify QGIS projects from the terminal using the real QGIS runtime.

1|Updated Jun 13, 2025
One-click install
npx skills add https://github.com/quazfenton/binG --skill cli-anything-qgis-quazfenton
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-qgis
Source: https://github.com/quazfenton/binG/tree/main/.agents/skills/CLI-Anything-main/CLI-Anything-main/QGIS/agent-harness/cli_anything/qgis/skills
Command: npx skills add https://github.com/quazfenton/binG --skill cli-anything-qgis-quazfenton

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stateful QGIS CLI enables programmatic control over QGIS projects, writable layers, features, layouts, and exports directly from the terminal using the real QGIS runtime, eliminating GUI-driven repetition.

Core Features & Use Cases

  • Stateful session with an interactive REPL for ongoing work
  • Create, open, save, inspect projects; manage writable layers and features
  • Create layouts, export to PDF or image, and run qgis_process algorithms from the CLI
  • Use cases include automated geospatial workflows, batch processing, and reproducible project setups
  • Real-world example: script a workflow to set up a project, add a layer, and export a map

Quick Start

Open a QGIS session by running cli-anything-qgis and begin with project new to create a project.

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 from the terminal?

You can automate QGIS project management from the terminal by using a stateful CLI that controls the real QGIS runtime to create, open, inspect, and save projects without the GUI.

Can I run qgis_process algorithms and export layouts via command line?

Yes, you can run qgis_process algorithms and export layouts to PDF or image directly from the command line using the interactive REPL for ongoing stateful geospatial workflows.

What do I need to script reproducible geospatial workflows with QGIS?

To script reproducible geospatial workflows, you need QGIS with qgis_process on the PATH, PyQGIS importable in your Python environment, and Python 3.10 or higher.

What is the best way to batch process writable layers and features in QGIS?

The best way to batch process writable layers and features in QGIS is using a stateful CLI session that programmatically modifies features and manages layers via the real QGIS runtime.

Does stateful QGIS CLI work without launching the QGIS GUI?

Yes, the stateful QGIS CLI operates entirely without the GUI by leveraging the real QGIS runtime through the terminal, eliminating GUI-driven repetition for automated geospatial workflows.