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, 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).

You can also install the State Tool .exe. You may be prompted to allow the State Tool executable access to your system before the installation can complete.

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, we recommend closing and re-opening your command prompt 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 or check here to troubleshoot.

What’s Next