Global Options
The following options can be used with any command:-e, --env: Override the environment for this command. Choices are [development, sandbox, production].-a, --auth: Override the authentication method for this command. Choices are [apikey, oauth].--enable-debug: Enable debug mode for verbose logging.--env-file: Specify the path to the dotenv file. Default is ~/.cobo/.env.--spec: Path to a custom OpenAPI specification file.
Main Commands
version
Display the current version of the Cobo CLI tool. Usage:config
Manage CLI configuration settings. Subcommands:set <key> <value>: Set a configuration value.get <key>: Get a configuration value.list: List all configuration values.delete <key>: Delete a configuration value.
login
Perform user or organization login operations. Options:--user, -u: Login action associated with user dimension (default).--org, -o: Login action associated with organization dimension.--org-uuid: Specify the organization ID used to retrieve the token (required for organization login).--refresh-token: Refresh the existing token instead of generating a new one.
logout
Perform user or organization logout operations. Options:--user, -u: Logout action associated with user dimension.--org, -o: Logout action associated with organization dimension.--all, -a: Logout action for both user and organization (default).
keys
Commands to generate and manage API/APP keys. Subcommands:generate: Generate a new API/APP key pair.
--key-type: Type of key to generate (API or APP). Default is API.--alg: Specify the key generation algorithm. Default is ed25519.--force: Force to replace existing keys.
app
Commands to create, run, publish, and manage Cobo applications. Subcommands:init: Create a new Cobo application from template.run: Run a Cobo application.publish: Publish a Cobo application.update: Update a Cobo application.status: Check the status of a Cobo application.
open
Open a specific Cobo portal page in the default web browser. Arguments:target: The page to open. Choices are [portal, dashboard, wallets, custodial, mpc, scw, exchange, developer, apps, settings, guides, pricing, approval]. Default is portal.
doc
Open Cobo documentation or display API operation information. Arguments:topic_or_path: The documentation topic or API path to open/display.
-u, --update: Update the OpenAPI specification.
env
Set or view the current environment. Arguments:environment: The environment to set. Choices are [development, sandbox, production].
auth
Set or view the default authentication method. Arguments:method: The authentication method to set. Choices are [apikey, oauth].
API Commands
get
Make a GET request to a Cobo API endpoint. Usage:post
Make a POST request to a Cobo API endpoint. Usage:put
Make a PUT request to a Cobo API endpoint. Usage:delete
Make a DELETE request to a Cobo API endpoint. Usage:graphql
Execute a GraphQL query against the Cobo API. Options:-q, --query: The GraphQL query string (required).-v, --variables: JSON string of variables for the GraphQL query.--raw: Output the raw JSON response.
Utility Commands
logs tail
Tail the request logs from Cobo. Options:--http-method: Filter logs by HTTP method.--request-path: Filter logs by request path.--status-code: Filter logs by status code.--api-key: Filter logs by API key.--ip-address: Filter logs by IP address.--limit: Number of logs to fetch per request (default: 3).
webhook
Commands related to webhook operations. Subcommands:trigger: Manually trigger a webhook event.events: List all available webhook event types.listen: Listen for webhook events using WebSocket.
EVENT_TYPE: The type of event to trigger (required).--override: JSON string to override event data.
--events: Comma-separated list of event types to listen for.--forward: URL to forward events to.
