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-hereProfiles
Use profiles to switch between different accounts or environments:
Create a new profile:
bycloud config set-profile staging --region spo1Use a specific profile:
bycloud --profile staging compute instances listSet default profile:
bycloud config set default_profile stagingRegions
Set the default region or specify per-command:
Set default region:
bycloud config set region spo1Override region for a command:
bycloud --region spo1 compute instances listDefault Output Format
Set the default output format for all commands:
bycloud config set output textAvailable formats: text, json, yaml
View Configuration
View your current configuration:
Show all settings:
bycloud config listShow a specific setting:
bycloud config get region