Install the Nimbella Command Line Tool (nim)
In most cases, we recommend that you use nim as a command to be invoked globally from shells or scripts. Here are the advantages of shell invocation:
- The CLI is self-contained and has no dependencies on previously installed software.
- You get automated update services when new versions are available.
If you don’t want a global installation but rather want to make nim a dependency of some other package, and your node version is at least 10.0, you can install it as a dependency with npm or yarn. See the second procedure.
Install nim globally
- Install nim according to your operating system:
- When the installation completes, run the following command:
nim update command verifies that nim is installed and capable of self-updating. If the initial installation happens not to be the latest version, the update step also corrects that.
Install nim as a dependency
Use this method only to make nim a dependency of some other package. To invoke nim globally, use the previous procedure.
- When installed as a dependency, the
nim updatecommand will not work. You have to do a fresh install to get later versions.
- This form of installation requires you to have
nodeinstalled at a minimum version of 10.0.
- Run either of the following commands, depending on whether you want to use npm or yarn:
- For npm:
npm install https://apigcp.nimbella.io/downloads/nim/nimbella-cli.tgz
- For yarn:
yarn add https://apigcp.nimbella.io/downloads/nim/nimbella-cli.tgz
- When installation finishes, execute nim locally to the package into which it has been incorporated with the following command. For example using
npx nim ...