Back to General FAQ

Internal documentation only

This page has been marked as draft.

Replicated with CLI installation

To install and run the latest Replicated CLI on Linux: Installing the Replicated CLI | Replicated Docs

My OS: Ubuntu

  1. Run the following command
curl -s https://api.github.com/repos/replicatedhq/replicated/releases/latest \
| grep "browser_download_url.*linux_amd64.tar.gz" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -O replicated.tar.gz -qi -
tar xf replicated.tar.gz replicated && rm replicated.tar.gz
mv replicated /usr/local/bin/replicated

Output:

Replicated with CLI installation

NOTE: If you do not have root access to the /usr/local/bin directory, you can install with sudo by running sudo mv replicated /usr/local/bin/replicated instead of mv replicated /usr/local/bin/replicated.

  1. Verify that the installation was successful:
replicated --help

Replicated with CLI installation

  1. Authorize the replicated CLI:
replicated login

In the browser window that opens, you can just complete the prompts to log in to your vendor account and authorize the CLI.

Authorize replicated cli web page

Replicated with CLI installation

Log in page:

Replicated with CLI installation

After authorizing the CLI, I open the SAML authentication to log in to Replicated.

Replicated with CLI installation

NOTE: The replicated login command creates a token after you log in to your vendor account in a browser and saves it to a config file. Alteratively, if you do not have access to a browser, you can set the REPLICATED_API_TOKEN environment variable to authenticate. For more information, see (Optional) Set Environment Variables below.

  1. (Optional) When you are done using the Replicated CLI, remove any stored credentials created by the replicated login command:
Replicated logout
["Geneos"] ["FAQ"]

Was this topic helpful?