version
Use the version command to display the current version of Cobo CLI.login
Use the login command to log in to your Cobo Portal account or acquire an Org Access Token.-u
,--user
: Log in with your Cobo Portal account (default).-o
,--org
: Acquire an Org Access Token.--refresh-token
: Refresh the existing Org Access Token instead of generating a new one.
logout
Use the logout commands to log out of your Cobo Portal account or remove the Org Access Token.-u
,--user
: Log out from your Cobo Portal account.-o
,--org
: Remove the Org Access Token only.-a
,--all
: Log out from your Cobo Portal account and remove the Org Access Token (default behavior).
auth
Use the auth command to set or view the current authentication method.method
: The authentication method to set. Possible values includeapikey
,user
, andorg
.
env
Use the env command to set or view the current environment.<environment>
: The environment to set. Possible values includedev
andprod
.
keys
Use the keys commands to generate and manage API key pairs and app key pairs.generate
Use thegenerate
command to generate a new API or app key pair.
--key-type <key_type>
: Specify the type of key to generate (API
orAPP
). Default isAPI
.--alg <algorithm>
: Specify the key generation algorithm. Default ised25519
.--force
: Force replacement of existing keys.
config
Use the config commands to manage CLI configuration settings.set
Use theset
command to set a configuration value.
key
: The key to set.value
: The value to set.
get
Use theget
command to get a configuration value.
key
: The key to get.
list
Use thelist
command to list all configuration values.
delete
Use thedelete
command to delete a configuration value.
key
: The key to delete.
app
app init
Use the init command to create an application that integrates the WaaS 2.0 service.-t
,--app-type <portal|web|mobile|automation>
: The type of WaaS application.--auth <apikey|org|user>
: The authentication method that the application uses to access the WaaS 2.0 service.--wallet-type <custodial-asset|custodial-web3|mpc-org-controlled|mpc-user-controlled|smart-contract|exchange>
: The wallet type that the application interacts with.--mobile <flutter|react-native|kotlin|swift>
: The mobile development framework of the application.--web <react|nextjs|vue|svelte>
: The web development framework of the application.Currently Cobo CLI only supportsreact
.--backend <fastapi|django|express|flask|spring-boot|gin|laravel|rails|nextjs>
: The backend development framework of the application.Currently Cobo CLI only supportsfastapi
.-d
,--directory <DIRECTORY>
: The directory in which you want to create the application project.-f
,--force
: Force overwrite the project directory if it already exists.
app upload
Use the upload command to publish your Cobo Portal Apps to Cobo Portal.app update
Use the update command to deploy updates to a Cobo Portal App on Cobo Portal.app status
Use the status command to check the status of Cobo Portal Apps.webhook
listen
Use the listen command to establish a WebSocket connection to the WaaS 2.0 service and stream webhook events.--events <event_type>
: Filter the events by specifying event types. Possible values for event types include:wallets.transaction.created
wallets.transaction.updated
wallets.transaction.failed
wallets.transaction.succeeded
wallets.mpc.tss_request.created
wallets.mpc.tss_request.updated
wallets.mpc.tss_request.failed
wallets.mpc.tss_request.succeeded
--forward <url>
: Forward received events to the specified URL.
trigger
Use the trigger command to test the functionality of your webhook endpoint by triggering a test webhook event.<event_type>
: The webhook event type you want to trigger. Possible values include:
wallets.transaction.created
wallets.transaction.updated
wallets.transaction.failed
wallets.transaction.succeeded
wallets.mpc.tss_request.created
wallets.mpc.tss_request.updated
wallets.mpc.tss_request.failed
wallets.mpc.tss_request.succeeded
--override <json_string>
: Override specific fields in the event payload with the provided JSON string.
Example
events
Use the events command to retrieve all available webhook event types in WaaS 2.0.API commands
get
Use the get command to make a GET request to the WaaS 2.0 service. You can also use it to retrieve a list of all available GET operations or display the description of a specified operation within the WaaS 2.0 API.To make API requests via Cobo CLI, you need to authenticate your requests by logging in and using Org Access Tokens or API Keys as the authentication method. For more information, refer to Authenticate with Org Access Tokens and Authenticate with API Keys.
<path>
: The URL of the endpoint to which the GET request will be sent.
Options
-d, --describe
: Display the description of the specified GET operation, including its expected responses and error information (if any).-l, --list
: List all available GET operations of the WaaS 2.0 service.
post
Use the post command to make a POST request to the WaaS 2.0 service. You can also use it to retrieve a list of all available POST operations or display the description of a specified operation within the WaaS 2.0 API.To make API requests via Cobo CLI, you need to authenticate your requests by logging in and using Org Access Tokens or API Keys as the authentication method. For more information, refer to Authenticate with Org Access Tokens and Authenticate with API Keys.
<path>
: The URL of the endpoint to which the POST request will be sent.
Options
-d, --describe
: Display the description of the specified POST operation, including its expected responses and error information (if any).-l, --list
: List all available POST operations of the WaaS 2.0 service.
put
Use the put command to make a PUT request to the WaaS 2.0 service. You can also use it to retrieve a list of all available PUT operations or display the description of a specified operation within the WaaS 2.0 API.To make API requests via Cobo CLI, you need to authenticate your requests by logging in and using Org Access Tokens or API Keys as the authentication method. For more information, refer to Authenticate with Org Access Tokens and Authenticate with API Keys.
<path>
: The URL of the endpoint to which the PUT request will be sent.
Options
-d, --describe
: Display the description of the specified PUT operation, including its expected responses and error information (if any).-l, --list
: List all available PUT operations of the WaaS 2.0 service.
delete
Use the delete command to make a DELETE request to the WaaS 2.0 service. You can also use it to retrieve a list of all available DELETE operations or display the description of a specified operation within the WaaS 2.0 API.To make API requests via Cobo CLI, you need to authenticate your requests by logging in and using Org Access Tokens or API Keys as the authentication method. For more information, refer to Authenticate with Org Access Tokens and Authenticate with API Keys.
<path>
: The URL of the endpoint to which the DELETE request will be sent.
Options
-d, --describe
: Display the description of the specified DELETE operation, including its expected responses and error information (if any).-l, --list
: List all available DELETE operations of the WaaS 2.0 service.
Utility commands
logs tail
Use the logs tail command to stream real-time logs of your API requests to the WaaS 2.0 service directly in your terminal.--http-method
: Filter API logs by the HTTP method, such asPOST
.--request-path
: Filter API logs by the endpoint path, such as/v2/wallets/{wallet_id}
.--status-code
: Filter API logs by the HTTP status code, such as200
.--api-key
: Filter API logs by a specific API key used in requests.--ip-address
: Filter API logs by the IP address from which requests were made.
open
Use the open command to open various pages of Cobo Portal conveniently in your default web browser with shortcuts.<shortcut>
: Shortcut used to quickly open a page of Cobo Portal. The following shortcuts are available:
portal
: The login page of Cobo Portaldashboard
: The Dashboard pagewallets
: The Wallets overview pagecustodial
: The Custodial Wallets overview pagempc
: The MPC Wallets overview pagescw
: The Smart Contract Wallets overview pageexchange
: The Exchange Wallets overview pagedeveloper
: Developer Consoleapps
: The Cobo Portal Apps overview pagepricing
: The Pricing Plans pageapproval
: The Approvals page
doc
Use the doc command to fetch and update the latest WaaS 2.0 OpenAPI specification.<topic_or_path>
: Specifies the documentation topic or the API operation path. Possible values include:
guides
: (Default)Opens the Introduction to WaaS 2.0 guide.api
: Opens the API Reference page.sdk
: Opens the WaaS SDKs guide.apps
: Opens the Cobo Portal App development guide.- API endpoint paths: Displays detailed information on API operations available for the specified path such as
/wallets
.
-u
, --update
: Update the OpenAPI specification for WaaS 2.0, ensuring you have the latest API definitions and documentation.
Example
Feel free to share your feedback to improve our documentation!