Reference
om commands
Every om command on Linux, with its options and what it prints.
On Linux, om is how you install, connect and remove Open Machine. A Mac does the same in the app.
usage: om up [--key KEY | --key-file FILE] [--name NAME]
om down
om status [--json]
om logout
om update
om set auto-update on|off
om uninstall
om version#om up
Connects this machine. If it is not signed in, om up prints a link to approve it in a browser, or joins with a key.
| Option | What it does |
|---|---|
--key KEY | Joins with a key from the Console. |
--key-file FILE | Reads the key from a file, so it stays out of the shell history. |
--name NAME | Names the machine. |
Connected: build-box.om (user me), Read only.#om down
Disconnects this machine. Its connections close; programs it started keep running.
Disconnected. Jobs keep running.#om status
Shows whether the machine is connected, then what is known about it. It exits with status 0 only when connected.
| First line | Meaning |
|---|---|
Connected | Ready. Other machines can reach it. |
Connecting | Joining the network. |
Disconnected. Run: om up | Turned off with om down. |
Signed out. Run: om up | Not signed in. |
Removed from the account. Run: om up | Removed in the Console. |
Not running. Run: om up | The service is not running. |
Update required. Run: om update | This version is too old to connect. |
--json prints one object for scripts:
{"state":"connected","name":"build-box","alias":"build-box.om","user":"me","account":"octocat","permission":"read_only","version":"0.2.31"}state is one of connected, connecting, disconnected, signed_out, removed, not_running and update_required.
#om logout
Signs this machine out. It stays in the Console, offline, until it signs in again.
#om update
Installs the latest release now, if there is a newer one. A release runs only if it is signed by Open Machine's release key.
#om set auto-update
om set auto-update on or off. Automatic updates are on after install.
#om uninstall
Removes this machine from the account, stops the service and deletes Open Machine's files. Running jobs keep running.
#om version
Prints the versions of Open Machine and Core.