The origin CLI
Manage Origin Cloud from your terminal.
Launch servers, manage volumes and networks, and look after your team’s access, with JSON output your scripts can read.
Install with one line
$ curl -fsSL https://packages.origincloud.eu/install.sh | shv1.9.15 · Linux and macOS · x86-64 and ARM64 · checksum verified
$ curl -fsSL https://packages.origincloud.eu/install.sh | shNext: origin id login$ origin id login$ origin compute list-instance-types# JSON on stdout, pair it with jqDownload
Pick your platform.
The one-line install picks the right file for you. Prefer to do it by hand? Choose your system and follow the steps.
Your file · Linux
origin-linux-amd64
For 64-bit Intel and AMD machines: most servers and laptops.
- origin-linux-amd64The CLI itself, a single fileDownload
- SHA256SUMSChecksums for every file in this releaseDownload
- SHA256SUMS.ascGPG signature of the checksum fileDownload
From packages.origincloud.eu/cli/v1.9.15/
# 1. Download the binary and the checksums$ curl -fsSLO https://packages.origincloud.eu/cli/v1.9.15/origin-linux-amd64$ curl -fsSLO https://packages.origincloud.eu/cli/v1.9.15/SHA256SUMS# 2. Check the file (optional: verify the signature first, see below)$ sha256sum --check --ignore-missing SHA256SUMS# 3. Put it on your PATH$ chmod +x origin-linux-amd64$ mkdir -p ~/.local/bin && mv origin-linux-amd64 ~/.local/bin/origin$ origin --versionThree steps
From install to your first answer.
Install
One line on Linux or macOS. The script picks your platform, checks the download and puts origin in ~/.local/bin.
$ curl -fsSL https://packages.origincloud.eu/install.sh | shEnds with: Next: origin id loginLog in
Your browser opens the Origin login page. The CLI never asks for your password. On a server over SSH, approve a code on another device instead.
$ origin id loginOpens your browser$ origin id login --deviceNo browser here, e.g. over SSHRun your first command
See the live catalog of instance types you can launch.
$ origin compute list-instance-typesPrints JSON: pair it with jq
What it covers
117 commands in eight groups.
From servers to roles. Each service’s docs have a full command reference, and you can add --help to any group or command.
origin compute22 commandsServers, SSH key pairs and images.
- launch-instance
- change-instance-type
- generate-key-pair
origin network49 commandsVPCs, subnets, security groups, floating IPs, gateways and DNS.
- create-vpc
- allocate-floating-ip
- update-security-group-rules
origin storage13 commandsVolumes and snapshots.
- create-volume
- resize-volume
- create-snapshot
origin iam17 commandsMembers, invites, roles and service accounts.
- current-user
- invite-member
- create-service-account
origin admin11 commandsOrganizations and projects.
- register-organisation
- create-project
- list-projects
origin id2 commandsLog in to Origin Cloud and get an access token.
- login
- login --device
- token --as-header --raw
origin config2 commandsYour CLI settings, such as a default username.
- profile
- profile-set default-username
origin version1 commandPrint the installed version.
- origin version
- origin --version
Built for scripts
Predictable output, every time.
- stdout
- JSON: the data the API returned. Pipe it to jq or parse it in any language.
- stderr
- Messages for you, such as login prompts. They never mix with the JSON.
- exit 0
- Success.
- exit 1
- Failure, with a short JSON envelope that says what went wrong and includes an error code.
Error codes you can match on
UNAUTHORIZEDFORBIDDENBAD_REQUESTNOT_FOUNDCONFLICTPAYMENT_METHOD_REQUIREDPRODUCT_UNAVAILABLEINSUFFICIENT_CAPACITYSERVICE_UNAVAILABLEINTERNAL_SERVER_ERRORSERVER_ERROR
{ "code": "failure", "description": "invalid input on field quota: organisation quota exceeded: vCPU usage is 38, requesting 4 more would exceed the limit of 40 (BAD_REQUEST) [correlation: 4bf92f3577b34da6a3ce929d0e0e4736]"}# Pretty-print the instance type catalog$ origin compute list-instance-types | jq .# Prints an Authorization header for curl or any HTTP client$ curl -H "$(origin id token --as-header --raw)" \ https://api.origincloud.eu/graphql -d '{"query": "…"}'# For CI and scripts, use a service account instead of your own loginVerify what you download
Every release is checksummed and signed.
Each version ships with a SHA256SUMS file and its GPG signature, SHA256SUMS.asc. The install script downloads the checksums and verifies the binary for you.
# Import the Origin Cloud release key (once)$ curl -fsSL https://packages.origincloud.eu/origincloud-release.asc \ | gpg --import# The checksum file is signed by Origin Cloud$ gpg --verify SHA256SUMS.asc SHA256SUMS# The binary matches the signed checksum$ sha256sum --check --ignore-missing SHA256SUMSInstall options
Pin a version, pick a folder.
Set these before sh to change what the install script does.
| Variable | Default | What it does |
|---|---|---|
| ORIGIN_VERSION | latest (v1.9.15) | Install a specific version instead of the latest one. |
| ORIGIN_INSTALL_DIR | ~/.local/bin | The folder origin is installed into. You are told if it is not on your PATH. |
| ORIGIN_BASE_URL | packages.origincloud.eu | Download from a mirror of the package site. |
$ curl -fsSL https://packages.origincloud.eu/install.sh \ | ORIGIN_VERSION=v1.9.15 ORIGIN_INSTALL_DIR=$HOME/bin shv1.9.15 · latest
Read the docs
From servers to roles. Each service’s docs have a full command reference, and you can add --help to any group or command.