Skip to main content
Use this procedure for local CDF development. For production governance, see CI/CD pipeline. Before you start, make sure you have the following prerequisites:
  • Python v3.10 or later.
  • Your identity provider details (how you sign in to CDF with your organization account).
  • Recommended: The Git CLI and basic knowledge of Git.
  • Recommended: The uv package manager.

Starting a new project

1

Create a local working folder

This folder holds configuration for all CDF projects in your organization (typically dev, test, and prod). Your organization name appears in the CDF URL: https://<organization>.fusion.cognite.com.
2

Install the Cognite Toolkit

If you manage multiple organizations with different Cognite Toolkit versions, install uv and run the Cognite Toolkit per folder with uv run. Otherwise, install globally with pip:
If the installation fails, see the troubleshooting section.
3

Run cdf init

Run cdf init and use the arrow keys to work through the setup tasks in order. The next three steps continue in the same cdf init session:
4

Create the cdf.toml file

Press enter to use the current directory. If the repository will hold more than the Cognite Toolkit configuration, enter a subdirectory name instead. The cdf.toml file controls the CLI version and optional features.
5

Set up credentials

Enter the requested authentication values. Choose device code (recommended) or interactive sign-in for local development — client credentials are better suited for CI/CD.Depending on the chosen sign-in flow, the .env file will contain different values as shown below:
Authenticate as a user via a browser prompt. Requires consent permission in your identity provider.
cdf init also writes derived optional values (IDP_AUTHORITY_URL, IDP_SCOPES, etc.) for Entra ID — you don’t need to set these manually. CDF_URL is optional and only needed for private-link or non-standard cluster URLs.
The .env file contains secrets — never check it into version control. The Cognite Toolkit’s .gitignore excludes it by default.
See Authentication for full details on each flow.
6

Set up folder structure

Select Modules to create the folder structure for configuration files and environment variables. You can choose a Deployment Pack to install, or select Empty module to start from scratch.
7

Make the working directory a Git repository

Initialize a Git repository and add the Cognite Toolkit’s default .gitignore and README.md:
8

Verify the setup

Run cdf about to confirm the installation and see your active configuration:
cdf about is also useful for troubleshooting as your project evolves.

Troubleshooting

Windows: path length errorERROR: Could not install package due to an OSError: [Errno 2] No such file or directory Deployment Pack module paths can exceed Windows’ 260-character limit depending on your install location. Enable long path support: maximum path length limitation.
Last modified on August 6, 2026