Gå til innhald

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

Upgrading the Cognite Toolkit

Follow these steps to upgrade the Cognite Toolkit CLI and modules to the latest version.

Step 1: Upgrade the Cognite Toolkit CLI

To upgrade the Cognite Toolkit to the latest version, open up a terminal and run this command:

pip install --upgrade cognite-toolkit
poetry add cognite-toolkit@latest

To upgrade the Cognite Toolkit to a specific version, for example a beta version, open up a terminal and run this command:

pip install cognite-toolkit==0.3.0b4

poetry add cognite-toolkit@0.3.0b4

Replace 0.3.0b4 with the version you want to install.

Step 2: Upgrade the Cognite Toolkit modules

To update the Cognite Toolkit modules to be compatible with the installed version of the Cognite Toolkit CLI:

  1. Open up a terminal and run this command:
cdf modules upgrade
  1. Follow the Cognite Toolkit instructions to manually update settings that the Cognite Toolkit couldn't upgrade automatically.