cobo env, cobo auth, and cobo keys, to store and retrieve their respective
information.
By following this guide, you will be able to:
- Understand the configuration file location and its purpose
- Set configuration values
- Retrieve configuration values
- List all configurations
- Delete configuration values
- Manage important settings like environment and authentication method
Prerequisites
- You have installed the Cobo CLI on your system. If not, refer to the Installation guide.
1. Configuration File Location and Purpose
By default, the Cobo CLI stores its configuration in a.env file within the .cobo directory in your home directory (~/.cobo/.env). This file is used to store various settings that are used across different Cobo CLI commands.
You can override this location by setting the COBO_ENV environment variable to a different path.
2. Set Configuration Values
To set a configuration value, use theset subcommand of the config command:
3. Retrieve Configuration Values
To retrieve a configuration value, use theget subcommand:
4. List All Configurations
To see all your current configuration settings, use thelist subcommand:
5. Delete Configuration Values
To remove a configuration value, use thedelete subcommand:
6. Important Configuration Settings
While you can store any custom configuration values, there are some key settings that the Cobo CLI uses:Environment
The Cobo CLI supports three environments:sandbox: For testing and developmentdev: For development purposesprod: For production use
This has the same effect as running
cobo env sandbox.Authentication Method
The CLI supports three authentication methods:apikey: For API key-based authenticationuser: For user-based authenticationorg: For organization-based authentication
This has the same effect as running
cobo auth apikey.