Communitygithub.com

CLI Tudo QGIS

CLI QGIS com estado para projetos, camadas graváveis, feições, layouts, exportações e operações qgis_process usando o runtime real do QGIS.

O que é CLI Tudo QGIS?

Esta skill fornece uma interface de linha de comando (CLI) para o QGIS, permitindo que desenvolvedores e agentes de IA inspecionem e modifiquem projetos QGIS diretamente do terminal, utilizando o runtime real do QGIS. Ela suporta a criação, abertura, salvamento e inspeção de projetos .qgs/.qgz, criação de camadas vetoriais baseadas em GeoPackage, adição de feições com geometria WKT e atributos tipados, criação e exportação de layouts de impressão para PDF ou imagem, além da execução de algoritmos genéricos do qgis_process. A CLI mantém estado em uma sessão REPL, facilitando fluxos de trabalho interativos, e oferece saída JSON para integração automatizada com ferramentas como Claude Code, Cursor ou Codex. Essa skill é especialmente útil para automação de geoprocessamento, geração de mapas sob demanda e manipulação programática de projetos QGIS sem abrir a GUI.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-qgis

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

O que CLI Tudo QGIS faz?

Use esta skill quando precisar inspecionar ou modificar projetos QGIS a partir do terminal através do runtime real do QGIS.

Requisitos

  • QGIS instalado com qgis_process no PATH
  • PyQGIS importável do ambiente Python que executa a CLI
  • Python 3.10+

Orientações para o agente

  • Prefira --json para todos os usos automatizados.
  • Para comandos únicos, passe --project <caminho> ao operar em um projeto existente.
  • Executar cli-anything-qgis sem subcomando inicia um REPL com estado.
  • A exportação de layout é baseada nos algoritmos reais de processamento do QGIS:
    • native:printlayouttopdf
    • native:printlayouttoimage

O que esta CLI cobre

  • criar, abrir, salvar e inspecionar projetos .qgs / .qgz
  • criar camadas vetoriais graváveis baseadas em GeoPackage
  • adicionar feições via geometria WKT e atributos tipados chave=valor
  • criar layouts de impressão e adicionar itens de mapa/rótulo
  • exportar layouts para PDF ou imagem
  • inspecionar e executar algoritmos genéricos do qgis_process
  • inspecionar status da sessão e histórico

Grupos de comandos

project

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

layer

  • create-vector --name --geometry --crs [--field nome:tipo ...]
  • list
  • info CAMADA
  • remove CAMADA

feature

  • add --layer CAMADA --wkt WKT [--attr chave=valor ...]
  • list --layer CAMADA [--limit N]

layout

  • create --nome [--page-size] [--orientation]
  • list
  • info LAYOUT
  • remove LAYOUT
  • add-map --layout LAYOUT --x --y --width --height [--extent xmin,ymin,xmax,ymax]
  • add-label --layout LAYOUT --text TEXTO --x --y --width --height [--font-size N]

export

  • presets
  • pdf SAIDA --layout LAYOUT [--dpi] [--force-vector] [--force-raster] [--georeference/--no-georeference] [--overwrite]
  • image SAIDA --layout LAYOUT [--dpi] [--overwrite]

process

  • list
  • help ID_ALGORITMO
  • run ID_ALGORITMO [--param CHAVE=VALOR ...]

session

  • status
  • history [--limit N]

Exemplos

Criar um projeto e adicionar uma camada gravável

cli-anything-qgis --json project new -o demo.qgz --title "Demo" --crs EPSG:4326
cli-anything-qgis --json --project demo.qgz layer create-vector \
  --name places \
  --geometry point \
  --field name:string \
  --field score:int

Adicionar feições e inspecioná-las

cli-anything-qgis --json --project demo.qgz feature add \
  --layer places \
  --wkt "POINT(1 2)" \
  --attr name=HQ \
  --attr score=5

cli-anything-qgis --json --project demo.qgz feature list --layer places --limit 10

Criar e exportar um layout

cli-anything-qgis --json --project demo.qgz layout create --name Main
cli-anything-qgis --json --project demo.qgz layout add-map --layout Main --x 10 --y 20 --width 180 --height 120
cli-anything-qgis --json --project demo.qgz layout add-label --layout Main --text "Demo map" --x 10 --y 8 --width 100 --height 10
cli-anything-qgis --json --project demo.qgz export pdf output.pdf --layout Main --overwrite

Inspecionar ou executar algoritmos de processamento

cli-anything-qgis --json process help native:buffer
cli-anything-qgis --json --project demo.qgz process run native:buffer \
  --param INPUT=/tmp/demo_data.gpkg|layername=places \
  --param DISTANCE=1 \
  --param SEGMENTS=8 \
  --param END_CAP_STYLE=0 \
  --param JOIN_STYLE=0 \
  --param MITER_LIMIT=2 \
  --param DISSOLVE=false \
  --param OUTPUT=/tmp/buffer.geojson

REPL

cli-anything-qgis

Exemplo de fluxo interativo:

project new -o demo.qgz --title "Demo"
layer create-vector --name places --geometry point --field name:string
feature add --layer places --wkt "POINT(1 2)" --attr name=HQ
layout create --name Main
session status
quit

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

Habilidades Relacionadas