import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
You can install the latest Kusion CLI on MacOS, Linux and Windows.
For the MacOs and Linux, Homebrew and sh script are supported. Choose the one you prefer from the methods below.
The recommended method for installing on MacOS and Linux is to use the brew package manager.
Install Kusion
# tap formula repository Kusionstack/tap
brew tap KusionStack/tap
# install Kusion
brew install KusionStack/tap/kusionUpdate Kusion
# update formulae from remote
brew update
# update Kusion
brew upgrade KusionStack/tap/kusionUninstall Kusion
# uninstall Kusion
brew uninstall KusionStack/tap/kusion</TabItem>
<TabItem value="curl | sh">
Install Kusion
# install Kusion, default latest version
curl https://www.kusionstack.io/scripts/install.sh | shInstall the Specified Version of Kusion
You can also install the specified version of Kusion by appointing the version as shell script parameter, where the version is the available tag trimming prefix "v", such as 0.11.0, 0.10.0, etc. In general, you don't need to specify Kusion version, just use the command above to install the latest version.
# install Kusion of specified version 0.11.0
curl https://www.kusionstack.io/scripts/install.sh | sh -s 0.11.0Uninstall Kusion
# uninstall Kusion
curl https://www.kusionstack.io/scripts/uninstall.sh | sh</TabItem>
</Tabs>
For the Windows, Scoop and Powershell script are supported. Choose the one you prefer from the methods below.
The recommended method for installing on Windows is to use the scoop package manager.
Install Kusion
# add scoop bucket KusionStack
scoop bucket add KusionStack https://github.com/KusionStack/scoop-bucket.git
# install kusion
scoop install KusionStack/kusionUpdate Kusion
# update manifest from remote
scoop update
# update Kusion
scoop install KusionStack/kusionUninstall Kusion
# uninstall Kusion
brew uninstall KusionStack/kusion</TabItem>
<TabItem value="Powershell">
Install Kusion
# install Kusion, default latest version
powershell -Command "iwr -useb https://www.kusionstack.io/scripts/install.ps1 | iex"Install the Specified Version of Kusion
You can also install the specified version of Kusion by appointing the version as shell script parameter, where the version is the available tag trimming prefix "v", such as 0.11.0, etc. In general, you don't need to specify Kusion version, just use the command above to install the latest version.
# install Kusion of specified version 0.10.0
powershell {"& { $(irm https://www.kusionstack.io/scripts/install.ps1) } -Version 0.11.0" | iex}Uninstall Kusion
# uninstall Kusion
powershell -Command "iwr -useb https://www.kusionstack.io/scripts/uninstall.ps1 | iex"</TabItem>
</Tabs>