Command Line
The Command Line is the tao command that comes with the Desktop Assistant. You use it in a terminal on the computer where the assistant is installed, to start runs, watch them, approve them and set up the connection.
Connect it
tao config set --server-url https://tao.example.com --api-key apex_desk_xxxxx
The key is your Desktop Key (see Install). Use tao config get to show the current connection (the key is never shown) and tao config clear to remove it.
Runs
| Command | What it does |
|---|---|
tao submit (ACTIVITY_TYPE) [-i KEY=VALUE]... [--require-approval] | Submit a run, for example an activity like ReadTextFile. Prints "Submitted run (id) (status: …)". |
tao submit-workflow (XAML_FILE_PATH) [-i KEY=VALUE] [--require-approval] [--name NAME] | Submit a whole workflow file as one run |
tao submit-composed (WORKFLOW_JSON_FILE_PATH) [-i] [--require-approval] [--name] | Submit a workflow written as JSON |
tao port-project (SOURCE) [-o DIR] | Turn an old CloudBot saved project into a runnable process (local only, no service needed) |
tao list [-n LIMIT] [--page N] [--page-size N] [--status STATUS] | List recent runs (default 50). --status, for example Faulted or Completed, only works with --page-size. |
tao tail (RUN_ID) | Stream a run's log lines until it finishes |
tao cancel (RUN_ID) | Cancel a run |
Example:
tao list -n 10
tao tail (RUN_ID)
Approvals
| Command | What it does |
|---|---|
tao approve (RUN_ID) and tao reject (RUN_ID) | Decide a run waiting on this computer |
tao list-server-approvals | List approvals waiting on the platform |
tao approve-server (APPROVAL_ID) and tao reject-server (APPROVAL_ID) | Decide a platform approval |
The platform side is the Approval Queue.
Stop CoWork
| Command | What it does |
|---|---|
tao halt-cowork (SESSION_ID) | Stop all CoWork desktop activity for a session now, and cancel its waiting approvals |
tao resume-cowork (SESSION_ID) | Allow it again |
Libraries and trust
| Command | What it does |
|---|---|
tao lib add-url (URL) [--version V] [--allow-untrusted-dev] | Add an activity library from a web address |
tao lib list | List libraries |
tao lib upgrade (NAME) [--version V] | Upgrade one |
tao lib remove (NAME) | Remove one |
tao lib keygen [-o DIR] | Make a signing key pair |
tao lib publish (MANIFEST_PATH) --publisher NAME --out DIR [--private-key P --public-key P or --unsigned] | Package a library |
tao trust add --public-key (BASE64) --name (NAME) | Trust a publisher |
tao trust list and tao trust remove (KEY_ID) | List or remove trusted publishers |
Several people on one computer
Run this as the Windows account being registered:
tao user register --device-key (KEY) --server-url (URL)
Then tao user list and tao user remove (SID). One computer uses one TAO server address.
Where things are kept
The connection is saved encrypted in platform-connection.dat in the app's data folder. The same folder holds settings.json, runs.db, capabilities.json, trusted-publishers.json and libraries. On Windows the service logs are under ProgramData. Use --help and --version for built-in help.