General

Commands for the CLI itself: help, upgrades, shell completion, and agent context.

Command Description
scalar readme Open CLI documentation in your browser
scalar readme generate Generate the CLI README from the command tree
scalar upgrade Upgrade the Scalar CLI to the latest version
scalar context Print every command, argument, and option as JSON for AI agents
scalar completion Generate shell completion definitions

readme

Open CLI documentation in your browser.

scalar readme [options] [command]

Options

Option Description
--no-input Disable prompts and browser launches.

readme generate

Generate the CLI README from the command tree.

scalar readme generate [options]

Options

Option Description
-o, --output [file] Path where the documentation file will be written.
--no-input Disable prompts and browser launches.

upgrade

Upgrade the Scalar CLI to the latest version.

scalar upgrade [options]

Options

Option Description
--check Show installed and available versions without installing.
--json Show the version check as JSON without installing.
--no-input Disable prompts and browser launches.

context

Print every command, argument, and option as JSON for AI agents.

scalar context [options]

Options

Option Description
--no-input Disable prompts and browser launches.

completion

Generate shell completion definitions.

scalar completion [options] <shell>

Arguments

Argument Description
shell Required. Shell to configure. One of bash, zsh, fish.

Options

Option Description
--no-input Disable prompts and browser launches.

What did you think of this content?