Comprehensive guide to command-line interface usage with interactive demonstrations
curl -fsSL https://install.cli.dev | sh
This downloads and runs the installation wizard which will:
cli --version
Expected output: 12.3.4
cli selfcheck
This will verify CLI integrity and show the environment status
cli init --template=node
This creates a default configuration file at ~/.cli/config.yaml
cli:
default:
template: node
registry: https://registry.cli.dev/
cache: ~/.cli/cache
cli install @core/cli --global
Installs a globally available CLI tool with automatic dependency
cli run dev --watch
Executes the development server with file watching enabled
cli config set api.key=xyz123
Sets API key in configuration that can be accessed by plugins
cli help install
Displays detailed help documentation for installed commands
cli plugins list
Lists all installed CLI plugins and their status
cli context switch production
Sets active configuration context for deployment settings
cli init my-project --template=react
Creates new project directory with specified template and dependencies
cli dependencies add @ui-kit/core
Adds dependency to project manifest file and performs installation
cli build --production
Generates optimized application build with sourcemaps and metadata
cli deploy --environment=staging
Deploys application to configured environment with CI/CD pipeline integration
cli pipeline run --steps=build,lint,test
Executes sequential pipeline steps with:
cli plugins install @security/acl
cli plugins uninstall @build/webpack
All plugins follow the same CLI command pattern and can be versioned independently