Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
---
title: Install the Command Line Interface
description: Install the CycleCloud CLI, which provides console access to the CycleCloud application, making functions seen in the GUI available from the command line.
author: adriankjohnson
ms.date: 07/01/2025
ms.author: adjohnso
---
# Install the CycleCloud CLI
The Azure CycleCloud Command Line Interface (CLI) provides console access to the CycleCloud application, making functions seen in the GUI available from the command line. You can use it to control CycleCloud and CycleCloud Clusters directly or through a script.
## Prerequisites
The CycleCloud CLI requires an existing installation of Python 3.6 or later. While most Linux and Mac systems already have a valid Python 3 installation, you need to [install Python for Windows](https://docs.python-guide.org/starting/install3/win/#install3-windows).
## CycleCloud CLI installer file
You get the CLI installer as part of the CycleCloud installation package. Select **?** in the upper-right corner of the UI to access the **about** page. Use the **Download CLI Tools** button to download the installer in your browser.

You can also download the installer directly from the command line using the following command. If the CycleCloud instance doesn't have a certificate that matches its hostname, you might need to add the `--no-check-certificate` flag to the following `wget` command.
```bash
wget https://<your CycleCloud domain name>/static/tools/cyclecloud-cli.zip
```
## CycleCloud CLI installation for Linux
Extract the contents of **cyclecloud-cli.zip** to a temporary directory:
```bash
cd /tmp
unzip /opt/cycle_server/tools/cyclecloud-cli.zip
```
This step creates a subdirectory named **cyclecloud-cli-installer**. To complete the installation, run the **install.sh** script in this directory:
```bash
cd /tmp/cyclecloud-cli-installer
./install.sh
```
The CycleCloud CLI installs to **${HOME}/bin**. After installing the CLI, you can add the **${HOME}/bin** directory to the PATH environment variable in your profile.
```bash
if [[ -d ${HOME}/bin ]]; then
export PATH=${HOME}/bin:$PATH
fi
```
## CycleCloud CLI installation for Windows
In Windows Explorer, copy the CLI installer zip file to a temporary directory such as _Downloads_ or _$env:TMP_. Right-click on the copy of _cyclecloud-cli.zip_ and select **Extract All**. This action creates a subfolder named `cyclecloud-cli-installer-<VERSION>`.
In the `cyclecloud-cli-installer-<VERSION>` subfolder, you find a PowerShell script named _install.ps1_. Double-click the _install.ps1_ script to complete the CLI installation.
The CycleCloud CLI is now available in the system PATH for new PowerShell or Command Prompt sessions.
## Initialize CycleCloud CLI
After you install the CLI, connect it to your Azure CycleCloud server. The Azure CycleCloud CLI uses a REST API to communicate with the server. You need to initialize it with your Azure CycleCloud server URL:
1. Run `cyclecloud initialize` to set up the server. You're prompted for the CycleServer URL, which is the FQDN of your application server. Enter it in the format `https://FQDN`.
1. The installed Azure CycleCloud server uses either a Let's Encrypt SSL certificate or a self-signed certificate. Type `yes` when asked to allow the certificate.
1. Sign in with the same username and password you use for the CycleCloud web interface.
1. Run `cyclecloud show_cluster` to test that the CycleCloud CLI is working.
## Further reading
* [CycleCloud CLI Reference](../cli.md)