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
- 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:
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.
- Verify that the installation was successful:
replicated --help
- 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.
Log in page:
After authorizing the CLI, I open the SAML authentication to log in to Replicated.
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.
- (Optional) When you are done using the Replicated CLI, remove any stored credentials created by the
replicated logincommand:
Replicated logout