Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI Reference

Global CLI options available in Soar.

Quick Reference

OptionShortDescription
--verbose-vIncrease output verbosity
--quiet-qSuppress all output except errors
--json-jOutput results in JSON format
--no-color-Disable colored output
--no-progress-Disable progress bars
--profile-pUse a specific profile
--config-cSpecify custom config file path
--proxy-PSet HTTP/HTTPS proxy server
--header-HAdd custom HTTP headers
--user-agent-ASet custom User-Agent string
--system-SOperate in system-wide mode (requires root)

Verbosity Control

--verbose / -v

Increase output verbosity. Can be used multiple times (-vv, -vvv).

soar -v install neovim
soar -vv sync

--quiet / -q

Suppress all non-error output.

soar -q install nodejs

Output Format

--json / -j

Output results in JSON format for parsing.

soar --json query neovim
soar --json search python | jq '.[] | .name'

Display Options

--no-color

Disable colored output.

soar --no-color install ffmpeg

--no-progress

Disable progress bars.

soar --no-progress sync > sync.log

Configuration

--profile / -p

Use a specific profile.

soar --profile work install vscode

Profiles defined in ~/.config/soar/config.toml:

[profile.work]
root_path = "/opt/soar-work"

--config / -c

Specify custom configuration file path.

soar --config /path/to/config.toml install neovim

Network Options

--proxy / -P

Set HTTP/HTTPS proxy server.

soar --proxy http://proxy.example.com:8080 install python
soar --proxy http://user:pass@proxy.example.com:8080 sync

--header / -H

Add custom HTTP headers.

soar --header "Authorization: Bearer mytoken" sync
soar -H "X-Api-Key: secret123" install package

--user-agent / -A

Set custom User-Agent string.

soar --user-agent "MyApp/1.0" install python

System Mode

--system / -S

Operate in system-wide mode (requires root).

sudo soar --system install docker

System paths:

  • Config: /etc/soar/config.toml
  • Root: /opt/soar
  • Binaries: /opt/soar/bin

Common Combinations

Scripting:

soar --json --quiet install python

Debugging:

soar -vv --no-progress install neovim

CI/CD with Proxy:

soar --json --proxy http://proxy.corp.com:8080 sync

System Installation:

sudo soar --system install docker

Environment Variables

VariablePurposeExample
HTTP_PROXYSet HTTP/HTTPS proxyexport HTTP_PROXY=http://proxy:8080
SOAR_CONFIGCustom config file pathexport SOAR_CONFIG=/path/to/config.toml
NO_COLORDisable colored outputexport NO_COLOR=1
SOAR_ROOTOverride root directoryexport SOAR_ROOT=/custom/soar
SOAR_BINOverride bin pathexport SOAR_BIN=/custom/bin
SOAR_DBOverride database pathexport SOAR_DB=/custom/db
SOAR_CACHEOverride cache pathexport SOAR_CACHE=/custom/cache
SOAR_PACKAGESOverride packages pathexport SOAR_PACKAGES=/custom/packages
SOAR_REPOSITORIESOverride repositories pathexport SOAR_REPOSITORIES=/custom/repos
SOAR_PORTABLE_DIRSOverride portable dirs pathexport SOAR_PORTABLE_DIRS=/custom/portable
SOAR_STEALTHUse default config without reading fileexport SOAR_STEALTH=1
SOAR_NIGHTLYForce nightly update channelexport SOAR_NIGHTLY=1

See Also