Documentation Index
Fetch the complete documentation index at: https://docs.velatir.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thevelatir command-line interface is installed on the system path by the Windows MSI and the macOS package. It communicates with the local Velatir Agent over a platform-native IPC channel:
- Windows: named pipe
\\.\pipe\VelatirAgent - macOS and Linux: Unix domain socket
At a Glance
| Command | Requires admin | Purpose |
|---|---|---|
status | No | Show agent and host state. |
start | Yes | Activate transparent proxy interception. |
stop | Yes | Deactivate transparent proxy interception. |
restart | Yes | Stop then start. |
update | No / Yes | Check for updates, or apply with --apply. |
host restart | Yes | Drain and respawn the host process. |
quit | Yes | Stop the agent itself. |
events | No | Stream agent events. |
logs | No | Tail the agent or host log. |
version | No | Show CLI, agent, and host versions. |
get-config | No | Show effective configuration. |
set-api-key | Yes | Update the Velatir API key. |
set-ca | Yes | Provide a bring-your-own CA. |
Global Flags
| Flag | Effect |
|---|---|
--help, -h | Print usage. Also accepted as the help subcommand. |
--version, -v | Alias for version. |
--json | Emit JSON output where applicable. Useful for scripting. |
Exit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | Agent unreachable |
2 | Administrator privileges required |
3 | Operation failed |
64 | Invalid usage |
Control Commands
status
Show the current state of the agent and host. Does not require elevation.- Agent uptime and version
- Host status (running, restarting, stopped) and version
- Transparent proxy state (active or inactive)
- Masked API key
- Last successful trace submission timestamp
--json to produce a structured result suitable for monitoring tools.
start
Activate transparent proxy interception. Requires administrator rights.stop
Deactivate transparent proxy interception. Requires administrator rights.restart
Equivalent tostop followed by start. Useful after changing network conditions, for example connecting or disconnecting a VPN. Requires administrator rights.
Update Commands
update
Check whether a newer payload is available. Does not download.--apply. This drains the running host, swaps to the new payload, and relaunches. Requires administrator rights.
update --apply is the way to force it.
host restart
Drain the host process. The watchdog respawns it within 30 seconds on whichever payload is currently active. Requires administrator rights.quit
Stop the agent itself. The watchdog will not respawn it. Requires administrator rights.quit, the agent only restarts at next user logon (via the scheduled task on Windows or the launch agent on macOS) or when manually restarted.
Observability Commands
events
Stream the agent’s event log. Does not require elevation.HostExited, HostLaunched, UpdateAvailable, UpdateApplied, and proxy lifecycle transitions. Filter by event type:
logs
Tail the agent or host log. Does not require elevation.--host -f together to follow the host log in real time. Logs are useful when diagnosing why traces are not appearing for a specific application.
version
Show the CLI, agent, and host versions.Configuration Commands
get-config
Show the effective configuration. The API key is masked. Does not require elevation.set-api-key
Update the Velatir API key. The host is restarted automatically so the new key takes effect immediately. Requires administrator rights.set-ca
Provide a bring-your-own certificate authority. The CA file must be a PFX (PKCS#12) bundle. The host is restarted automatically. Requires administrator rights.Common Recipes
Verify the install end to end
Rotate the API key
status that the masked key has changed.
Force the latest payload
Restart cleanly after a VPN change
Next Steps
Troubleshooting
Resolve agent-unreachable errors and other common issues.
Enterprise deployment
Drive the CLI from MDM and scripted rollouts.
How it works
Understand what each command actually does under the hood.
FAQ
Quick answers to the questions that come up most often.