Skip to main content

Commands

Description

Manage configuration for the sb0 CLI, including platform API endpoints and registry settings.

Set Configuration

Set a configuration value:

Available Keys

  • platformApiBase - Platform API endpoint URL
  • registryBase - Container registry base URL
  • gatewayBase - Gateway API base URL

Examples

Get Configuration

View configuration values:

Example Output

Configuration Storage

Configuration is stored locally in:

Default Values

If not explicitly set, the CLI uses default platform endpoints:

When to Use Config

You typically don’t need to modify configuration unless:
  • Using a custom deployment - Self-hosted platform
  • Testing against staging - Non-production environment
  • Enterprise setup - Custom endpoints
  • Troubleshooting - Debugging connection issues

Reset to Defaults

To reset configuration to defaults, remove the config file:
The CLI will recreate it with defaults on next use.

Common Use Cases

Switch to Staging Environment

Switch Back to Production

View Current Environment

Configuration Priority

Configuration sources (highest to lowest priority):
  1. Explicitly set values - Via sb0 config set
  2. Environment variables - If supported
  3. Default values - Built into CLI

Common Issues

Invalid URL

Solution: Ensure the URL includes the protocol:

Permission Denied

Solution: Ensure you have write permissions:

Next Steps