CLI

References for @dico/cli

@dico/cli is at the center of developers workflow when working with Dico.app.

Authentication

login

Log in within the CLI using your personal access token.

dico login <token>

💡 If you're currently logged in within ui.dico.app, you should see above your very own personal access token!

If so, you can then simply copy/paste the command.

logout

Log out from the CLI.

dico logout

whoami

Display current logged in user of the CLI.

dico whoami

Dico

init

Init a dico inside the current project.

dico whoami

You can use the --force or -f flag to overwrite an existing dico.config.json file.

build

Build a dico according to your source files.

dico build

push

Push your keys to Dico.app.

dico push

You can use the --build or -b flag to build your dico before pushing keys.

fetch

Use the project client to fetch its dico and update your dico.data.json file.

dico fetch

You can project an optional path to the fetch command to specify the folder in which your dico.config.json file is.

Miscellaneous

Displaying Help

To display help, run one of the following commands:

dico
dico --help
dico -h

Checking Version

To check version, run one of the following commands:

dico --version
dico -v

Updating

To update the CLI run with your favorite package manager:

npm install --global @dico/cli@latest
yarn global add @dico/cli@latest

The CLI will let you know whenever a new update is available, we recommend staying up-to-date with the CLI latest version.


On point with the CLI? Browse the client references ->

Edit this page on GitHub Updated at Wed, Jun 30, 2021