Skip to content
SuperAlign
Surface
Esc
↑↓navigate↵open⌘Jpreview
On this page

Scanner commands

Every command of the surface binary, with what it does.

The scanner binary is surface. Most commands need administrator rights: prefix them with sudo on macOS and Linux, and run them from an elevated PowerShell on Windows.

Command What it does
surface init Full setup: create folders, enroll or sign in, install and start the service and the tray. Safe to run again
surface status [--json] Version, service state, scan interval, server URL, signed-in user, organization
surface scan --once Run one scan and report it, with output in the terminal. The quickest check that everything works
surface scan Run continuously in the background. This is what the service runs
surface logs [-f] [-n N] Show the last N log lines (default 50). -f keeps following
surface logs --extension <slug> Logs for one extension
surface update [--check] Check for, or download and apply, a scanner update
surface unenroll Remove this endpoint from the organization and delete its credentials
surface logout Sign out an endpoint that was enrolled with a browser sign-in
surface tray Run the menu bar or system tray indicator, as the signed-in user
surface extension install <slug> Install the extension for an AI tool such as claude, codex, or chrome
surface extension list Show installed extensions
surface extension uninstall <slug> Remove an extension
surface --version Print version, commit, and build date

surface init flags

Flag Use it when
--enrollment-token <token> You have an enrollment token an admin shared; omit it to be asked, which keeps it out of shell history
--email <you@company.com> Record your work email with the endpoint (needs --enrollment-token)
--yes You want no prompts
--skip-login The token will arrive later from MDM
--no-service You only want to enroll, not install the service
--no-browser You will sign in yourself instead of opening the browser
--server-url <url> Self-hosting: point at your own backend
--gateway-url <url> Self-hosting: point at your own gateway; off drops the live connection

Three ways to leave

Command Use it when
surface unenroll The endpoint was enrolled through MDM and you want it out of the organization
surface logout The endpoint was enrolled with a browser sign-in and you want to sign out
Uninstall You want the scanner off the endpoint entirely. It unenrolls first. See Update and uninstall

Was this page helpful?