hkuds avatar

Cli Anything Qgis

If you need to script QGIS operations without opening the GUI, this gives you a proper CLI backed by the actual QGIS runtime and PyQGIS. You can create projects, add GeoPackage vector layers, insert features with WKT geometry, build print layouts, and export to PDF or images. It works both as one-shot commands and as a stateful REPL, which is handy when you're iterating on a workflow. The tool wraps native QGIS processing algorithms, so layout exports and geoprocessing operations behave exactly like they would in the desktop app. Good fit for automated map generation pipelines or headless GIS work where you want real QGIS behavior without the UI overhead.

skills.sh installs
575
GitHub stars
58.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add hkuds/cli-anything --skill cli-anything-qgis --agent claude-code

Installs into .claude/skills of the current project.

Files

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_process on PATH
  • PyQGIS importable from the Python environment running the CLI
  • Python 3.10+

Agent guidance

  • Prefer --json for all machine-driven use.
  • For one-shot commands, pass --project <path> when operating on an existing project.
  • Running cli-anything-qgis with no subcommand starts a stateful REPL.
  • Layout export is backed by real QGIS processing algorithms:
    • native:printlayouttopdf
    • native:printlayouttoimage

What this CLI covers

  • create, open, save, and inspect .qgs / .qgz projects
  • create writable GeoPackage-backed vector layers
  • add features via WKT geometry and typed key=value attributes
  • create print layouts and add map/label items
  • export layouts to PDF or image
  • inspect and run generic qgis_process algorithms
  • inspect session status and history

Command groups

project

  • new -o/--output [--title] [--crs]
  • open PATH
  • save [PATH]
  • info
  • set-crs CRS

Sponsors

Details

Repository
github.com/hkuds/cli-anything
Category
CLI & Terminal
First seen
Jun 3, 2026

More from hkuds/cli-anything

All 51
1flutter avatarflutter-home-screen-widgetflutter/skillsflutter home screen widget557skills.sh installs
2doist avatartodoist-clidoist/todoist-cliManage Todoist tasks, projects, labels, filters, sections, comments, reminders, and workspaces via the `td` CLI. Use when the user wants to view, create, update556skills.sh installs
3hkuds avatarcli-anything-kritahkuds/cli-anythingCLI harness for Krita digital painting — manage projects, layers, filters, and export via command line. Use when automating Krita workflows, batch processing im550skills.sh installs
4jackwener avatarbilibili-clijackwener/bilibili-clibilibili cli545skills.sh installs
5hkuds avatarcli-anything-musescorehkuds/cli-anythingCLI for music notation — transpose, export PDF/audio/MIDI, extract parts, manage instruments541skills.sh installs
6teneoprotocolai avatarteneo-cliteneoprotocolai/teneo-skillsTeneo CLI — 39 commands for browse & query network agents, send commands to agents, room management, deploy & manage your own agents, wallet management, daemon 541skills.sh installs