The Gigalixir Command-Line Interface¶
The Gigalixir Command-Line Interface or CLI is a tool you install on your local machine to control Gigalixir.
How to Install the CLI¶
There is also an Arch AUR Package here: https://aur.archlinux.org/packages/gigalixir-cli/
If you’re interested in creating a macOS Brew formula, contact us!
If you’re interested in creating an Ubuntu/Debian package, contact us!
How to Upgrade the CLI¶
To upgrade the Gigalixir CLI, run
pip3 install -U gigalixir --ignore-installed six
All HTTP requests made between your machine and Gigalixir’s servers are encrypted.
- No news is good news: If you run a command that produces no output, then the command probably succeeded.
- Exit codes: Commands that succeed will return a 0 exit code, and non-zero otherwise.
- stderr vs stdout: Stderr is used for errors and for log output. Stdout is for the data output of your command.
When you login with your email and password, you receive an API key. This API key is stored in your
~/.netrc file. Commands generally use your
~/.netrc file to authenticate with few exceptions.
Bugs in the CLI are reported to Gigalixir’s error tracking service. Currently, the only way to disable this is by modifying the source code. Pull requests are also accepted!
The Gigalixir CLI is open source and we welcome pull requests. See the gigalixir-cli repository.
How do I enable bash auto-completion?¶
Add the following to your
.bashrc file and restart your shell.
eval "$(_GIGALIXIR_COMPLETE=source gigalixir)"