visionctl reference

visionctl is the operator CLI for a running Vision Player box. It talks to the local vision-core daemon over a UI control socket — no network access is required for local operation.

visionctl status
visionctl playback pause --output HDMI-1
visionctl cache list --limit 50

Run visionctl --help or visionctl <subcommand> --help on the box for the full flag reference; this page covers the parts that don't fit a --help screen.

Examples

Print daemon and output state:

visionctl status

Pause playback on a specific output:

visionctl --output HDMI-1 playback pause

Seek 12 seconds into the current item:

visionctl playback seek 12000ms --output HDMI-1

Inspect and prune the content cache:

visionctl cache list --limit 50
visionctl cache purge --url https://example.com/image.jpg
visionctl cache prefetch https://example.com/clip.mp4 --content-type video

Stream performance samples every five seconds:

visionctl performance watch --interval 5s

Subscribe to cache events as JSON:

visionctl events watch --topic cache --json

Edit configuration:

visionctl config show --json
visionctl config set geometry 0,0,1920,1080 --output HDMI-1

Turn an output's picture for a portrait or upside-down screen (clockwise degrees; see Portrait and upside-down screens):

visionctl outputs list
visionctl outputs set-rotation <output-id> 90

Diagnostics bundles

visionctl diagnostics bundle asks the local vision-core daemon to create a redacted support archive, a gzip tarball (.tar.gz). Use --out to copy the completed archive to a technician-selected path. Bundle collection works offline and does not upload data.

Core collects the whole bundle before it answers, which can take well over ten seconds on a low-power device, so this command waits up to 120s by default instead of the usual 10s. If it still times out, the bundle is not lost: core finishes it and saves it in the bundles folder beside its log (the LOG line of visionctl diagnostics snapshot). Rerun with a longer --timeout to wait for it.

Pausing updates and the scheduled reboot

visionctl updates pause stops automatic updates on this device until visionctl updates resume, until --until (an RFC 3339 instant, or a duration such as 90m, 48h or 2d), or until the portal changes its own update policy, whichever comes first. Only a mandatory push from the portal installs while paused.

visionctl updates pause --until 48h
visionctl updates status
visionctl updates resume

visionctl reboot-schedule enable|disable switches the portal-configured reboot schedule on or off; its time and days are the portal's to set.

Both are local edits that stand until the portal changes its own value. When the portal owns the setting it is told, and status shows the portal's value beside the local one, saying so when they differ.

Environment

VariablePurpose
VISIONCTL_LOGLog-verbosity filter for stderr output. Overrides the level implied by -v/-vv. Example: VISIONCTL_LOG=debug.
XDG_RUNTIME_DIROn Linux, the directory containing vision-ui.sock. Falls back to /run/user/$UID when unset.
TMPDIROn macOS, the directory containing vision-ui-<uid>.sock. Falls back to /tmp when unset.

Files

PathPurpose
${XDG_RUNTIME_DIR:-/run/user/$UID}/vision-ui.sockUI control socket on Linux.
${TMPDIR:-/tmp}/vision-ui-<uid>.sockUI control socket on macOS.
\\.\pipe\vision-ui-<sid>UI control named pipe on Windows.

Exit status

CodeMeaning
0Success.
1Daemon operation error — the request reached the daemon but failed.
2CLI usage error — invalid arguments or flags.
3Cannot connect to vision-core — the daemon is not running or the socket path is wrong. Stderr includes the resolved socket path.
4Request timed out (default 10s, 120s for diagnostics bundle). Adjust with --timeout.
5Local file I/O error — e.g. failed to read a config file passed to config apply.

See also

vision-config(1), systemctl(1), journalctl(1).

On a deployed Vision box, the full man page is available via man visionctl.