Get started with the Cloud CLI
The Quant Cloud CLI (qc) is a command-line tool for managing your applications, environments, and infrastructure on the Quant Cloud Platform.
Requirements
Section titled “Requirements”- Node.js 16 or higher - Check with
node --version - npm - Included with Node.js
Install
Section titled “Install”Install the CLI globally via npm:
npm install -g @quantcdn/quant-cloud-cliThe package provides two command aliases:
quant-cloud- Full command nameqc- Short alias
Verify the installation:
qc --versionAuthenticate
Section titled “Authenticate”Log in to your Quant Cloud account:
qc loginThis opens a browser-based OAuth flow. You’ll be prompted to select your platform:
- QuantGov Cloud - Government & Enterprise Platform (
dash.quantgov.cloud) - Quant Cloud - Content Delivery Platform (
dashboard.quantcdn.io)
After authorizing in the browser, the CLI stores your credentials locally at ~/.quant/credentials.
Check your session
Section titled “Check your session”qc whoamiDisplays your email, active organization, application, environment, and token expiry.
Log out
Section titled “Log out”qc logoutProject configuration
Section titled “Project configuration”Create a .quant.yml file in your project root to automatically set the organisation, application and environment when you run commands from that directory. The file does not choose the platform. Use qc platform switch for that.
Check the active platform with qc platform current before you run a command.
Example:
org: my-organizationapp: my-applicationenv: productionThe CLI resolves context using this priority (highest first):
- CLI flags -
--org,--app,--env - Project config -
.quant.ymlin the current or parent directory (up to git root) - Stored config -
~/.quant/credentials(set viaqc org select,qc app select, etc.)
Set your active context
Section titled “Set your active context”If you’re not using a .quant.yml file, set your active context interactively:
qc org selectqc app selectqc env selectEach command presents an interactive list. You can also pass the value directly:
qc org select my-orgqc app select my-appqc env select productionMulti-platform support
Section titled “Multi-platform support”The Cloud CLI supports authentication with multiple platforms simultaneously. Use the platform commands to manage connections:
qc platform list # List all authenticated platformsqc platform switch # Switch between platformsqc platform current # Show active platformqc platform remove # Remove a platformThe short alias qc plat also works.
Environment variables
Section titled “Environment variables”| Variable | Description |
|---|---|
LOG_LEVEL |
Set logging verbosity: DEBUG, INFO, WARN, ERROR |
Next steps
Section titled “Next steps”- Commands reference - Full list of management commands
- SSH access - Connect to environment containers
- Backups - Manage database and filesystem backups
- Visual regression testing - Automated visual comparison
