init command to create an application that integrates the WaaS 2.0 service.
You can specify the details of the WaaS application you want to create through options, including the application type, authentication method, and development frameworks. You can also choose these parameters step by step and create the project using the prompts of Cobo CLI.
Usage
Options
-
-t,--app-type <portal|web|mobile|automation>: The type of WaaS application. Possible values include:portal: Cobo Portal Appsweb: Web applicationsmobile: Mobile applicationsautomation: AI agents for automating tasks or processes
-
--auth <apikey|org|user>: The authentication method that the application uses to access the WaaS 2.0 service. Possible values include:-
apikey: API keys -
org: Org Access TokensIf you are creating a Cobo Portal App, you need to use Org Access Tokens as the authentication method. -
user: Cobo Portal accounts
-
-
--wallet-type <custodial-asset|custodial-web3|mpc-org-controlled|mpc-user-controlled|smart-contract|exchange>: The wallet type that the application interacts with. Possible values include:-
custodial-asset: Custodial Wallets (Asset Wallets) -
custodial-web3: Custodial Wallets (Web3 Wallets) -
mpc-org-controlled: MPC Wallets (Organization-Controlled Wallets) -
mpc-user-controlled: MPC Wallets (User-Controlled Wallets) -
smart-contract: Smart Contract Wallets (Safe) -
exchange: Exchange WalletsCurrently this parameter does not affect the application to be created.
-
-
--mobile <flutter|react-native|kotlin|swift>: The mobile development framework of the application. Possible values include:flutter: Flutterreact-native: React Nativekotlin: Kotlinswift: Swift
-
--web <react|nextjs|vue|svelte>: The web development framework of the application. Possible values include:react: Reactnextjs: Next.jsvue: Vuesvelte: SvelteCurrently Cobo CLI only supportsreact.
-
--backend <fastapi|django|express|flask|spring-boot|gin|laravel|rails|nextjs>: The backend development framework of the application. Possible values include:fastapi: FastAPIdjango: Djangoexpress: Expressflask: Flaskspring-boot: Spring Bootgin: Ginlaravel: Laravelrails: Ruby on Railsnextjs: Next.jsCurrently 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.
If you use the prompts of Cobo CLI to create the application, you can skip the app key step for now if you have not generated an app key.
Example
web type (indicating a web application), using Org Access Tokens for authentication, and creates it in the directory named my_project.
