CLI Reference
This page documents the global options that apply across soar commands, along with the environment variables that influence soar's behavior.
Quick Reference
| Option | Short | Description |
|---|---|---|
--verbose | -v | Increase output verbosity |
--quiet | -q | Suppress all output except errors |
--json | -j | Output results in JSON format |
--no-color | - | Disable colored output |
--no-progress | - | Disable progress bars |
--profile | -p | Use a specific profile |
--config | -c | Specify custom config file path |
--proxy | -P | Set HTTP/HTTPS proxy server |
--header | -H | Add custom HTTP headers |
--user-agent | -A | Set custom User-Agent string |
--system | -S | Operate in system-wide mode (requires root) |
Verbosity Control
--verbose / -v
Increase output verbosity. It can be used multiple times for more detail (-vv, -vvv).
bash
soar -v install neovim
soar -vv sync--quiet / -q
Suppress all non-error output.
bash
soar -q install nodejsOutput Format
--json / -j
Output results in JSON format for parsing.
bash
soar --json query neovim
soar --json search python | jq '.[] | .name'Display Options
--no-color
Disable colored output.
bash
soar --no-color install ffmpeg--no-progress
Disable progress bars.
bash
soar --no-progress sync > sync.logConfiguration
--profile / -p
Use a specific profile.
bash
soar --profile work install vscodeProfiles are defined in ~/.config/soar/config.toml:
toml
[profile.work]
root_path = "/opt/soar-work"--config / -c
Specify a custom configuration file path.
bash
soar --config /path/to/config.toml install neovimNetwork Options
--proxy / -P
Set an HTTP/HTTPS proxy server.
bash
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.
bash
soar --header "Authorization: Bearer mytoken" sync
soar -H "X-Api-Key: secret123" install package--user-agent / -A
Set a custom User-Agent string.
bash
soar --user-agent "MyApp/1.0" install pythonSystem Mode
--system / -S
Operate in system-wide mode. This requires root.
bash
sudo soar --system install dockerSystem paths:
- Config:
/etc/soar/config.toml - Root:
/opt/soar - Binaries:
/opt/soar/bin
Common Combinations
bash
soar --json --quiet install pythonbash
soar -vv --no-progress install neovimbash
soar --json --proxy http://proxy.corp.com:8080 syncbash
sudo soar --system install dockerEnvironment Variables
| Variable | Purpose | Example |
|---|---|---|
HTTP_PROXY | Set HTTP/HTTPS proxy | export HTTP_PROXY=http://proxy:8080 |
SOAR_CONFIG | Custom config file path | export SOAR_CONFIG=/path/to/config.toml |
SOAR_PACKAGES_CONFIG | Custom packages.toml path | export SOAR_PACKAGES_CONFIG=/path/to/packages.toml |
NO_COLOR | Disable colored output | export NO_COLOR=1 |
SOAR_ROOT | Override root directory | export SOAR_ROOT=/custom/soar |
SOAR_BIN | Override bin path | export SOAR_BIN=/custom/bin |
SOAR_DB | Override database path | export SOAR_DB=/custom/db |
SOAR_CACHE | Override cache path | export SOAR_CACHE=/custom/cache |
SOAR_PACKAGES | Override packages path | export SOAR_PACKAGES=/custom/packages |
SOAR_REPOSITORIES | Override repositories path | export SOAR_REPOSITORIES=/custom/repos |
SOAR_PORTABLE_DIRS | Override portable dirs path | export SOAR_PORTABLE_DIRS=/custom/portable |
SOAR_DESKTOP | Override desktop entries path | export SOAR_DESKTOP=/custom/applications |
SOAR_STEALTH | Use default config without reading file | export SOAR_STEALTH=1 |
SOAR_NIGHTLY | Force nightly update channel (self update) | export SOAR_NIGHTLY=1 |
SOAR_RELEASE | Force stable update channel (self update) | export SOAR_RELEASE=1 |
See Also
- Configuration for the configuration file reference
- Profiles for managing multiple installation profiles
- Installation for the installation guide
- Health & Diagnostics for health checks and debugging