The Cubbit CLI uses a profile-based configuration system that allows you to manage multiple environments (production, staging, local) from a single installation.
The config file is stored at:
$XDG_CONFIG_HOME/cubbit/config.yaml
Which resolves to ~/.config/cubbit/config.yaml on most Linux and macOS systems.
cubbit config initThis creates the file with defaults if it doesn't exist yet. You can also edit it manually at any time.
Profiles are named sets of configuration values. You can have as many as you need — one per environment, per customer, or per project.
[default]
endpoint = "https://api.eu00wi.cubbit.services"
output = "json"
[profile.prod]
inherits = "default"
type = "composer"
api_key = "<prod_api_key>"
[profile.staging]
inherits = "default"
type = "composer"
endpoint = "https://staging.api.cubbit.services"
api_key = "<staging_api_key>"
[profile.dev]
inherits = "default"
type = "composer"
endpoint = "localhost"
api_key = "<dev_api_key>"| Option | Description | Example |
|---|---|---|
endpoint |
API endpoint for your DS3 Composer instance | https://api.eu00wi.cubbit.services |
output |
Default output format for all commands | json, yaml, xml, csv |
type |
Profile type | composer |
api_key |
Authentication API key (generated on login) | — |
inherits |
Inherit settings from another profile | default |
The inherits field lets you define shared settings once (like endpoint and output) in a [default] block and reuse them across profiles, overriding only what differs.
# List all configured profiles
cubbit config profiles
# Switch the active profile
cubbit config switch-profile staging
# View the active configuration
cubbit config viewYou can set a default output format in your profile, or override it per command with the --output flag:
cubbit tenant list --output json
cubbit swarm list --output yaml
cubbit node list --output csvSupported formats: json, yaml, xml, csv. When no format is set, output is human-readable.
API keys are generated through a browser-based OAuth flow and stored in your profile automatically. To refresh or create a key for a profile:
cubbit auth login --profile <profile_name>See the Getting Started guide for the full login walkthrough.