@identity-box/cli

CLI for exploring Identity Box services via IPC

Usage no npm install needed!

<script type="module">
  import identityBoxCli from 'https://cdn.skypack.dev/@identity-box/cli';
</script>

README

@identity-box/cli

CLI for Identity Box. Handy, easy to update, run via npx. The commands will go and come.

Usage

$ npx @identity-box/cli --help

or

$ npx github:/identity-box/cli --help

Commands

info

When installing service on the identity box, it would be nice to easily query for the currently running version of the service. Since version 0.1.33, each package prints its current version when starting to the standard output. Yet, looking through pm2 logs is not so convenient and this utility allows you to query the version of the service through an IPC call.

Examples:

Query the version of the identity-box.nameservice:

$ npx @identity-box/cli info identity-box.nameservice

Query the version of the identity-box.nameservice but route the request through the box-office:

$ npx @identity-box/cli info --boxOffice identity-box.nameservice

upgrade-to-yarn2

This command is handy when you still have services installed below version 0.1.33 and you want to upgrade. Since version 0.1.33 we recommend using our packages with yarn 2 (berry). Using the upgrade-to-yarn2 command you can conveniently update the current installation to switch to the yarn version 2 (berry).

Usage

$ cd ~/idbox/nameservice
$ npx @identity-box/cli upgrade-to-yarn2

to silent the output from the executed commands:

$ cd ~/idbox/nameservice
$ npx @identity-box/cli upgrade-to-yarn2 -s