ByCloud Docs
GuidesCLIAPISDK

Configuration

Configure the ByCloud CLI with profiles, regions, and default settings.

Configuration File

The CLI stores configuration in ~/.config/bycloud/config.yaml:

# Default profile default_profile: production # Output format (json, yaml, table) output: table # Profiles profiles: production: region: spo1 api_key: your-api-key-here development: region: spo1 api_key: dev-api-key-here

Profiles

Use profiles to switch between different accounts or environments:

Create a new profile:

bycloud config set-profile staging --region spo1

Use a specific profile:

bycloud --profile staging compute instances list

Set default profile:

bycloud config set default_profile staging

Regions

Set the default region or specify per-command:

Set default region:

bycloud config set region spo1

Override region for a command:

bycloud --region spo1 compute instances list

Default Output Format

Set the default output format for all commands:

bycloud config set output text

Available formats: text, json, yaml

View Configuration

View your current configuration:

Show all settings:

bycloud config list

Show a specific setting:

bycloud config get region