The command line

Use the command line to script UXDuck, run it without a window, or work over SSH. Install UXDuck first.

Check the connection

These commands read state without changing the vehicle:

uxduck --version
uxduck status
uxduck ports
uxduck rpc call daemon/about
uxduck rpc call link/list
uxduck rpc call vehicle/list

status shows the data directory and whether UXDuck is running there. ports shows listeners and conflicts. vehicle/list returns the vehicle IDs used by other commands.

If you started UXDuck with --dev or a custom --data-dir, use the same option for your CLI and MCP connection. Otherwise they read a different installation's state.

Open UXDuck

uxduck open starts or reuses UXDuck and follows When I open UXDuck from Settings. Explicit actions leave that preference unchanged:

uxduck open --window
uxduck open --browser
uxduck open --print

--print prints the browser address without opening it. uxduck daemon start starts UXDuck in the background without a window. uxduck mcp only connects to an already running UXDuck; start it yourself before connecting an AI agent.

Read one vehicle

Copy a vehicle ID from vehicle/list in place of VEHICLE_ID:

uxduck rpc call telemetry/get --json '{"id":"VEHICLE_ID"}'
uxduck rpc call vehicle/messages --json '{"vehicleId":"VEHICLE_ID"}'
uxduck vehicle history VEHICLE_ID

For connection or stale-value problems, follow Troubleshooting. For an agent that compares readings over time, follow Use with AI agents.

Find a simulation's starting place

Search names and addresses through the same hosted API as the Starting point picker:

uxduck rpc call place/search --json '{"query":"Queenstown, New Zealand","limit":5}'

Choose the intended region from suggestions. Pass that suggestion's exact key, text and near hint, if present, to place/locate:

uxduck rpc call place/locate --json '{"key":"CHOSEN_KEY","text":"CHOSEN_TEXT"}'

The result's place contains latitudeDeg and longitudeDeg. Read terrain/at at those coordinates for the ground elevation, then use them and that height with sim/start. Searching and locating read data only; they never start a simulation or save a place. Both respect the selected operator's place-name search setting. See Use with AI agents for MCP.

Send a command

Choose the target explicitly when more than one vehicle is connected. Read the command's receipt to see whether UXDuck refused it, the vehicle rejected it, or the vehicle accepted it. Acceptance does not prove the action has finished: check the resulting telemetry and messages.

uxduck command --vehicle VEHICLE_ID arm
uxduck command --vehicle VEHICLE_ID disarm

In a terminal, a command the app would confirm, such as arm, asks first. A script is not asked, but a dangerous command, such as disarming in flight, is sent only with --yes.

See Confirmations before issuing commands.

Replay a flight

uxduck replay
uxduck replay flight.tlog --play --speed 4
uxduck replay --restart
uxduck replay --close

Without a source it shows the replay open now, or opens the last flight when none is open. --speed takes 0.1 to 16. --at goes to seconds into the flight.

Find the remaining commands

uxduck --help
uxduck sim start --help
uxduck params definitions --help
uxduck video --help

Each subcommand lists its flags and examples.