Installing the State Tool

You can install the State Tool command line interface (CLI) on Windows, Linux, and macOS.

Installing on Windows

You can install the State Tool .exe directly, or run the following command in your terminal

powershell -Command "& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://platform.activestate.com/dl/cli/install.ps1')))"

You may be prompted to allow the State Tool executable access to your system before the installation can be completed. Once installed, we recommend closing and re-opening your command prompt to ensure your environment is properly updated.

Note that while our install process uses PowerShell under the hood, the State Tool does not yet officially support PowerShell (though it has been known to work for various PowerShell use cases).

Installing on Linux or macOS

Open your command prompt and execute the following command

sh <(curl -q https://platform.activestate.com/dl/cli/w19880m01/install.sh)

Once installed, we recommend closing and re-opening your command prompt to ensure your environment is properly updated.

Updating the State Tool

To install the most recent version of the State Tool, open a command terminal and enter

state update 

This will ensure that the State Tool CLI installed on your local system is upgraded to the latest secure release. It’s essential to keep your CLI up to date to maintain optimal security and access the latest features of the State Tool.

Uninstalling the State Tool

You can uninstall the State Tool by running the state clean uninstall command. For more information, see the command reference or check here to troubleshoot.

What’s Next