The CLI is your primary interface to the Nuon platform.

Installation

Homebrew

We publish an official tap you can install with Homebrew.
brew install nuonco/tap/nuon
After installation, you may need to refresh your shell session.
source ~/.bashrc # or ~/.zshrc, etc.
You can also enable autocomplete for you shell. Run nuon completion to see what shells we support.
source <(nuon completion <your-shell>)

Manage Binaries Directly

If you are not using Homebrew, you can dowload the binaries for MacOS or Linux:
  • darwin_amd64
  • darmin_arm64
  • linux_arm
  • linux_arm64
  • linux_386
  • linux_amd64
Binaries are published to https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli, and versioned by release. To download a binary, first look up the current API version, and then download the current binary for your platform. To look up the current API version:
curl https://api.nuon.co/version
To download the binaries for a specific version, substitute the version and platform into the following URL: https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli/$VERSION/nuon_${PLATFORM} An example of downloading version 0.19.421 of the CLI for darwin_arm64:
wget -o nuon https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli/0.19.421/nuon_darwin_arm64
Once the binary has been downloaded remember to make it executable.
chmod +x nuon

Updates

The Nuon CLI changes frequently, so we recommend you update it regularly.
You can update the CLI using Homebrew:
brew update
brew upgrade nuonco/tap/nuon
Or, if you are managing the binary directly, you can download the latest version from the S3 bucket as described above.

Debug Mode

In the case that something goes wrong, you can set the environment variable NUON_DEBUG to print verbose logs. These can be helpful to share with us, while debugging any issues.
NUON_DEBUG=true nuon apps list

Using the CLI against a BYOC Instance

If you are using a Nuon BYOC instance, that is, a copy of the Nuon platform running in your own infrastructure, you can use the CLI to interact with it. To do this, you can:
NUON_API_URL=https://api.your-byoc-instance.com nuon login 

# or

export NUON_API_URL=https://api.your-byoc-instance.com
nuon login #or other nuon CLI commands.
By default, the CLI will use api.nuon.co as the API URL.