Prerequisites
- Python 3.10 or later installed on your machine.
- A Python package manager:
pip,uv, orpoetry. - The Cognite Toolkit already installed. If you haven’t installed it yet, see the setup guide.
Check the current version
To see the currently installed version of the Cognite Toolkit CLI, run this command:Verify the installed CLI version:To check the version of the modules, open the
- pip
- uv
- poetry
cdf.toml file and look for the [modules] section:cdf.toml
Upgrade the Cognite Toolkit CLI
To upgrade the Cognite Toolkit to the latest version:To upgrade to a specific version:Replace
- pip
- uv
- poetry
- pip
- uv
- poetry
0.7.59 with the version you want to install.Upgrade the Cognite Toolkit modules
To upgrade the modules to match your installed CLI version:
-
Run this command:
- Follow the on-screen instructions to manually update any settings that couldn’t be upgraded automatically.
Run
cdf --version and verify the output matches the version you installed. Then open cdf.toml and confirm the [modules] version has been updated.Troubleshooting
”cdf command not found” error
A “command not found” error typically means your virtual environment is not activated. This is common when you useuv or poetry to manage Python dependencies in Visual Studio Code. If you haven’t installed the Cognite Toolkit yet, see the installation guide.
Prefix your commands with uv run or poetry run to run them in the correct virtual environment:
- uv
- poetry
These tools don’t use
pip run because pip doesn’t manage virtual environments. With pip, activate the virtual environment manually instead.- pip
- uv
- poetry
Mismatched installed and available versions
If you install a newer version of the Cognite Toolkit CLI usingpoetry and then run cdf --version in the terminal, the terminal may show an older version.
poetry. To fix this, either prefix your commands with poetry run or activate the virtual environment with poetry shell.
Next steps
- Using the Cognite Toolkit — learn how to deploy and manage resources after upgrading.
- Release notes — see what changed in the latest version.
cdf.tomlreference — understand the configuration file that controls module versions.