Command-line interface usage¶
Aliases : qdt, qgis-deployment-toolbelt, qdeploy-toolbelt
Commands and options¶
QGIS Deployment Toolbelt 0.40.1.dev14+g3e294c6a2.d20251201 - QGIS Deployment Toolbelt (QDT) is a CLI (Command Line Interface) to perform redundant operations after a QGIS deployment, managing QGIS profiles, plugins, environment variables, start menu / desktop shortcuts and many things to rationalize your QGIS installations.
qgis-deployment-toolbelt [-h] [--no-logfile] [--version] [-v] [--proxy-http QDT_PROXY_HTTP]
{deploy,export-rules-context,upgrade,auto-update,update} ...
qgis-deployment-toolbelt options¶
--no-logfile- Disable log file. Log files are usually created, rotated and stored in thefolder set by QDT_LOGS_DIR.--version- Display CLI version-v,--verbose- Verbosity level. None = WARNING, -v = INFO, -vv = DEBUG. Can be set with QDT_LOGS_LEVEL environment variable and logs location with QDT_LOGS_DIR. (default:1)--proxy-httpQDT_PROXY_HTTP- Option to specify an HTTP proxy in the form: scheme://[user:passwd@]proxy.server:port (default:None)
deployment¶
QDT’s main logic: run the deployment’s scenario.
deployment [-h] [-v] [--proxy-http QDT_PROXY_HTTP] [-s SCENARIO_FILEPATH]
deployment options¶
-v,--verbose- Verbosity level. None = WARNING, -v = INFO, -vv = DEBUG. Can be set with QDT_LOGS_LEVEL environment variable and logs location with QDT_LOGS_DIR. (default:1)--proxy-httpQDT_PROXY_HTTP- Option to specify an HTTP proxy in the form: scheme://[user:passwd@]proxy.server:port (default:None)-sSCENARIO_FILEPATH,--scenarioSCENARIO_FILEPATH- Scenario path, local or remote (HTTP/S). (default:scenario.qdt.yml)
rules-context-export¶
Export QDT rules context taking into account the local environment to help rules writing.
rules-context-export [-h] [-v] [--proxy-http QDT_PROXY_HTTP] [-o OUTPUT_PATH]
rules-context-export options¶
-v,--verbose- Verbosity level. None = WARNING, -v = INFO, -vv = DEBUG. Can be set with QDT_LOGS_LEVEL environment variable and logs location with QDT_LOGS_DIR. (default:1)--proxy-httpQDT_PROXY_HTTP- Option to specify an HTTP proxy in the form: scheme://[user:passwd@]proxy.server:port (default:None)-oOUTPUT_PATH,--outputOUTPUT_PATH- Path to the output file where to write rules context. (default:/home/runner/.cache/qgis-deployment-toolbelt/export/qdt_rules_context.json)
upgrade (auto-update, update)¶
Check if a new version of QDT is available and download it locally.
upgrade [-h] [-v] [--proxy-http QDT_PROXY_HTTP] [-c] [-n] [-w LOCAL_DOWNLOAD_FOLDER]
upgrade options¶
-v,--verbose- Verbosity level. None = WARNING, -v = INFO, -vv = DEBUG. Can be set with QDT_LOGS_LEVEL environment variable and logs location with QDT_LOGS_DIR. (default:1)--proxy-httpQDT_PROXY_HTTP- Option to specify an HTTP proxy in the form: scheme://[user:passwd@]proxy.server:port (default:None)-c,--check-only- Only check if a new version is available. No download.-n,--dont-show-release-notes- Display release notes.-wLOCAL_DOWNLOAD_FOLDER,--whereLOCAL_DOWNLOAD_FOLDER- Folder to store the downloaded file. (default:./)
Developed by: "Julien Moura (Oslandia)" <qgis+qdt@oslandia.com>, "Jean-Marie Kerloch (Oslandia)" <qgis+qdt@oslandia.com>, "Nicolas Godet (ISL)" <nicolas.godet@outlook.fr>
Documentation: https://qgis-deployment.github.io/qgis-deployment-toolbelt-cli/