Exoscale CLI
Manage your Exoscale infrastructure easily from the command-line with exo
.
Installation
Debian and Red Hat based distributions
On Debian and Red Hat based distributions like Ubuntu and Fedora, we recommend using the installation script.
curl -fsSL https://raw.githubusercontent.com/exoscale/cli/master/install-latest.sh | sh
Using pre-built releases
You can find pre-built releases of the CLI here.
From sources
To build exo
from sources, a Go compiler >= 1.16 is required.
$ git clone https://github.com/exoscale/cli
$ cd cli
$ git submodule update --init --recursive go.mk
$ make build
Upon successful compilation, the resulting exo
binary is stored in the bin/
directory.
Using the scoop package manager on Windows
If you haven't installed scoop already, follow the instructions at scoop.sh before installing exo
with:
scoop bucket add exoscale-cli https://github.com/exoscale/cli
scoop install exoscale-cli
To update exo
to the latest version:
scoop update
scoop update exoscale-cli
From the AUR on Arch Linux
gpg --keyserver keys.openpgp.org --recv-key 7100E8BFD6199CE0374CB7F003686F8CDE378D41
git clone https://aur.archlinux.org/exoscale-cli-bin.git
cd exoscale-cli-bin/
makepkg --install
Alternatively there are two packages building from source https://aur.archlinux.org/exoscale-cli.git and https://aur.archlinux.org/exoscale-cli-git.git where the latter builds from the latest commit on the master branch and the former from the latest release commit.
Configuration
Running the exo config
command will guide you through the initial configuration.
You can create and find API credentials in the IAM section of the Exoscale Console.
The configuration file and all assets created during exo
operations will be saved in the following location:
OS |
Location |
GNU/Linux, *BSD |
$HOME/.config/exoscale/ |
macOS |
$HOME/Library/Application Support/exoscale/ |
Windows |
%USERPROFILE%\.exoscale\ |
The configuration parameters are then saved in a exoscale.toml
file with the following minimum format:
defaultaccount = "account_name"
[[accounts]]
account = "account_name"
endpoint = "https://api.exoscale.com/v1"
key = "API_KEY"
name = "account_name"
secret = "API_SECRET"
The current configuration and configuration file path can be shown with exo config show
.
Usage
The exo
CLI contains documentation for all of its commands, you can explore them by running exo help
.
Additional information and tutorials are available on Exoscale's community website.
Integrations
Fig
When using Fig you can run this command to output Fig completion spec:
exo integrations generate-fig-spec
External contributions