Skip to main content
Version: v4.5.0

stk-legacy upgrade

Description

The stk-legacy upgrade command updates the STK CLI version when a new one is available.

How does it work?

When you execute the stk-legacy 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-legacy upgrade'.

Parameters

ParameterDescription
--forceForce STK CLI upgrade to a new major version.
info

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.

Example

See the examples below:

  1. Upgrade the STK CLI to the latest available version:
stk-legacy upgrade
  1. Upgrade STK CLI to a major available version:
stk-legacy upgrade --force

The result will be, for example, the upgrade from version 4.x.x to version 5.x.x.

Was this page helpful?