Setup the CLI
To get Akamas CLI installed on Linux, run the following commands:
curl -o akamas_cli -O https://s3.us-east-2.amazonaws.com/akamas/cli/$(curl https://s3.us-east-2.amazonaws.com/akamas/cli/stable.txt)/linux_64/akamas
sudo mv akamas_cli /usr/local/bin/akamas
chmod 755 /usr/local/bin/akamas
You can now run the Akamas CLI following by running the
akamas
command.In some installations, the
/usr/local/bin
folder is not present in the PATH
environment variable. This prevents you from using akamas without specifying the complete file location. To fix this issue you can add an entry to the PATH
system environment variable or move the executable to another folder in your PATH
.To enable auto-completion on Linux systems with a bash shell (requires bash 4.4+), run the following commands:
curl -O https://s3.us-east-2.amazonaws.com/akamas/cli/$(curl https://s3.us-east-2.amazonaws.com/akamas/cli/stable.txt)/linux_64/akamas_autocomplete.sh
mkdir -p ~/.akamas
mv akamas_autocomplete.sh ~/.akamas
echo '. ~/.akamas/akamas_autocomplete.sh' >> ~/.bashrc
source ~/.bashrc
To install the Akamas CLI on Windows run the following command from the Powershell:
Invoke-WebRequest "https://s3.us-east-2.amazonaws.com/akamas/cli/$($(Invoke-WebRequest https://s3.us-east-2.amazonaws.com/akamas/cli/stable.txt | Select-Object -Expand Content) -replace '\n', '')/win_64/akamas.exe" -OutFile akamas.exe
You can now run the Akamas CLI following by running
.\akamas
in the same folder.To invoke the
akamas
CLI from any folder, create a akamas
folder (such as C:\Program Files\akamas
), and move there the akamas.exe
file. Then, add an entry to the PATH
system environment variable with the value C:\Program Files\akamas
. Now, you can invoke the CLI from any folder, by simply running the akamas
command.The Akamas CLI can be accessed by simply running the
akamas
command.You can verify that the CLI was installed correctly by running this command:
akamas --version
which should show an output similar to this one
Akamas CLI, version 2.7.2
At any time, you can see available commands and options with:
akamas --help
Last modified 1mo ago