Installing and Configuring the Custom Chart CLI
Before installing Composer's custom chart CLI, verify that
Node.js version 10 or later and
npm version 5.6 or later are installed on your machine.
To install and configure the Custom Chart CLI:
- Install the Custom Chart CLI by running the following:
$ npm install [email protected]<x> -g
5, depending on the version of the custom chart CLI you are installing.
After installation, you can configure the default environment that is used by the Custom Chart CLI. This makes creating and pushing custom charts easier, as you do not have to provide the server URL and credentials with every command. Run the following to start the configuration process:
$ zd-chart config
Follow the prompts to store your default server configuration in an encrypted file. After the server configuration has been saved, the CLI checks for the presence of this file when you omit the server URL and credentials when running commands.
- After installing, you can create new visuals or make updates to current custom charts.