Installation
Install and set up the CoreViz CLI
Installation
The CoreViz CLI can be installed globally or run directly with npx. Choose the method that works best for your workflow.
Global Installation
Install the CLI globally using npm:
npm install -g @coreviz/cliAfter installation, you can use the coreviz command from anywhere:
coreviz --helpUsing npx (No Installation Required)
You can run the CLI directly without installing it globally:
npx @coreviz/cli [command]This is useful for:
- One-off commands
- CI/CD pipelines
- Trying out the CLI before installing
- Avoiding global package clutter
Verify Installation
Check that the CLI is installed correctly:
coreviz --version
# or
npx @coreviz/cli --versionRequirements
- Node.js: Version 14 or higher
- npm: Version 6 or higher (comes with Node.js)
Updating
To update the CLI to the latest version:
npm install -g @coreviz/cli@latestTroubleshooting
Command Not Found
If you get a "command not found" error after global installation:
- Check that npm's global bin directory is in your PATH:
npm config get prefix - Add it to your PATH if needed (usually
~/.npm-global/binor/usr/local/bin)
Permission Errors
If you encounter permission errors on macOS/Linux:
sudo npm install -g @coreviz/cliOr better yet, configure npm to use a directory you own:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
npm install -g @coreviz/cliNext Steps
- Commands: Learn about available CLI commands
- Authentication: Set up authentication for cloud features