
CLI Anything Qgis
Stateful QGIS CLI for projects, writable layers, features, layouts, exports, and...
Install
npx skills add HKUDS/CLI-Anything --skill cli-anything-qgis -g -a claude-code -y- Repository
- HKUDS/CLI-Anything58k
- Category
- Engineering
- Updated
- 1mo ago
- License
- Apache-2.0
- Context cost
- Lightabout 926 tokens
- Runs scripts
- No, instructions only
What it does
Stateful QGIS CLI for projects, writable layers, features, layouts, exports, and qgis_process operations using the real QGIS runtime.
cli-anything-qgis
Use this skill when you need to inspect or modify QGIS projects from the terminal through the real QGIS runtime.
Requirements
- QGIS installed with
qgis_processonPATH - PyQGIS importable from the Python environment running the CLI
- Python 3.10+
Agent guidance
- Prefer
--jsonfor all machine-driven use. - For one-shot commands, pass
--project <path>when operating on an existing project. - Running
cli-anything-qgiswith no subcommand starts a stateful REPL. - Layout export is backed by real QGIS processing algorithms:
native:printlayouttopdfnative:printlayouttoimage
What this CLI covers
- create, open, save, and inspect
.qgs/.qgzprojects - create writable GeoPackage-backed vector layers
- add features via WKT geometry and typed
key=valueattributes - create print layouts and add map/label items
- export layouts to PDF or image
- inspect and run generic
qgis_processalgorithms - inspect session status and history
Command groups
project
new -o/--output [--title] [--crs]open PATHsave [PATH]infoset-crs CRS
layer
create-vector --name --geometry --crs [--field name:type ...]listinfo LAYERremove LAYER
feature
add --layer LAYER --wkt WKT [--attr key=value ...]list --layer LAYER [--limit N]
layout
create --name [--page-size] [--orientation]listinfo LAYOUTremove LAYOUTadd-map --layout LAYOUT --x --y --width --height [--extent xmin,ymin,xmax,ymax]add-label --layout LAYOUT --text TEXT --x --y --width --height [--font-size N]
export
presetspdf OUTPUT --layout LAYOUT [--dpi] [--force-vector] [--force-raster] [--georeference/--no-georeference] [--overwrite]image OUTPUT --layout LAYOUT [--dpi] [--overwrite]
process
listhelp ALGORITHM_IDrun ALGORITHM_ID [--param KEY=VALUE ...]
session
statushistory [--limit N]
