-cli

-cli

CLI Reference Guide

Comprehensive guide to command-line interface usage with interactive demonstrations

Installation

System Requirements

  • • Operating System: Windows 10+, macOS 10.15+, Linux (64-bit)
  • • Minimum RAM: 4GB
  • • Disk Space: 500MB available

Installation

curl -fsSL https://install.cli.dev | sh

This downloads and runs the installation wizard which will:

  • Detect your operating system
  • Download CLI binary with checksum validation
  • Set up PATH environment variable
  • Verify installation with self-check

Verification

cli --version

Expected output: 12.3.4

cli selfcheck

This will verify CLI integrity and show the environment status

Configuration

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

Core Commands

install

cli install @core/cli --global

Installs a globally available CLI tool with automatic dependency

run

cli run dev --watch

Executes the development server with file watching enabled

config

cli config set api.key=xyz123

Sets API key in configuration that can be accessed by plugins

help

cli help install

Displays detailed help documentation for installed commands

plugins

cli plugins list

Lists all installed CLI plugins and their status

context

cli context switch production

Sets active configuration context for deployment settings

Advanced Usage

Script Pipeline

cli pipeline run --steps=build,lint,test

Executes sequential pipeline steps with:

  • • Build - Compiles application code
  • • Lint - Analyzes code quality
  • • Test - Runs unit and integration tests

Plugin Ecosystem

cli plugins install @security/acl
cli plugins uninstall @build/webpack

All plugins follow the same CLI command pattern and can be versioned independently