Upgrade the Astra CLI
Keep the Astra CLI up to date to access new features, improvements, and security updates.
If you’re upgrading from version 0.6 or earlier, see Upgrade from pre-1.0 versions of the Astra CLI.
|
If you used a package manager to install the Astra CLI, such as Homebrew, then you must use the same package manager to upgrade the Astra CLI. |
Upgrade with astra upgrade
You can use the astra upgrade command on macOS, Linux, or Microsoft Windows if you did not install the Astra CLI with a package manager.
On Windows, run the following commands in a PowerShell terminal.
-
Run the
astra upgradecommand to upgrade to the latest version of the Astra CLI:astra upgradeTo upgrade to a specific version, use the
--versionoption:astra upgrade --version VERSIONYou can also use this command to downgrade to a previous version.
-
Check the Astra CLI version to verify that the upgrade was successful:
astra --versionThe response returns your Astra CLI version.
Upgrade with Homebrew
-
Run the following command to upgrade to the latest version of the Astra CLI:
brew upgrade datastax/astra-cli/astra -
Check the Astra CLI version to verify that the upgrade was successful:
astra --versionThe response returns your Astra CLI version.