stk upgrade command updates the STK CLI version when a new one is available.
How does it work?
When you execute the
stk upgrade command in your terminal, it upgrades the STK CLI to the latest version. If there is a new version, the following message is displayed:
Your STK CLI version 4.0.0 is outdated. The new version 4.1.0 is available.
To upgrade run the command: 'stk upgrade'.
|Force STK CLI upgrade to a new major version.|
A new major version brings big changes from the previous version. These changes may cause conflicts between versions making it impossible to downgrade to the previous one.
STK CLI displays an incompatibility warning when updating a
major version available. It also provides the parameter
--force, which you can update if you want.
See the examples below:
- Upgrade the STK CLI to the latest available version:
- Upgrade STK CLI to a major available version:
stk upgrade --force
The result will be, for example, the upgrade from version
4.x.x to version
Was this page helpful?