Installing the State Tool

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

Installing on Windows

Open a command prompt and run the following command:

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

Once installed it is recommended that you close your command prompt and start a new one 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 its 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/install.sh)

Once installed it is recommended that you close your command prompt and start a new one to ensure your environment is properly updated.

Uninstalling the State Tool

You can uninstall the State Tool by running the state clean uninstall command. For more information, see the command reference.

What’s Next