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 |
--ipv4 | -4 | Connect over IPv4 only |
--ipv6 | -6 | Connect over IPv6 only |
--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).
soar -v install neovim
soar -vv sync--quiet / -q
Suppress all non-error output.
soar -q install nodejsOutput 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.logConfiguration
--profile / -p
Use a specific profile.
soar --profile work install vscodeProfiles are defined in ~/.config/soar/config.toml:
[profile.work]
root_path = "/opt/soar-work"--config / -c
Specify a custom configuration file path.
soar --config /path/to/config.toml install neovimNetwork Options
--proxy / -P
Set an HTTP/HTTPS proxy server.
soar --proxy http://proxy.example.com:8080 install python
soar --proxy http://user:pass@proxy.example.com:8080 syncWhen this option is omitted, soar falls back to the ALL_PROXY, HTTPS_PROXY and HTTP_PROXY environment variables, honoring NO_PROXY for hosts that should bypass the proxy. Passing --proxy overrides all of them, including NO_PROXY.
--header / -H
Add custom HTTP headers.
soar --header "Authorization: Bearer mytoken" sync
soar -H "X-Api-Key: secret123" install package--user-agent / -A
Set a custom User-Agent string.
soar --user-agent "MyApp/1.0" install python--ipv4 / -4 and --ipv6 / -6
Restrict connections to a single address family. By default soar tries every address a host resolves to, in whatever order the system resolver returns them.
These are useful on networks where one family is advertised but not actually routable. If a host publishes AAAA records and the network drops IPv6 traffic instead of rejecting it, soar waits out a 30 second connect timeout per address before moving on. Passing -4 skips IPv6 addresses entirely.
soar -4 install soar
soar --ipv4 syncBoth are filters rather than preferences, so -4 fails with "host not found" on a host that publishes only AAAA records. The two options cannot be combined.
System Mode
--system / -S
Operate in system-wide mode. This requires root.
sudo soar --system install dockerSystem paths:
- Config:
/etc/soar/config.toml - Root:
/opt/soar - Binaries:
/opt/soar/bin
Common Combinations
soar --json --quiet install pythonsoar -vv --no-progress install neovimsoar --json --proxy http://proxy.corp.com:8080 syncsudo soar --system install dockerEnvironment Variables
| Variable | Purpose | Example |
|---|---|---|
ALL_PROXY | Set proxy for all schemes | export ALL_PROXY=socks5://proxy:1080 |
HTTPS_PROXY | Set HTTPS proxy | export HTTPS_PROXY=http://proxy:8080 |
HTTP_PROXY | Set HTTP proxy | export HTTP_PROXY=http://proxy:8080 |
NO_PROXY | Hosts that bypass the proxy | export NO_PROXY=localhost,*.internal |
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