- 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:- pip
- uv
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
cdf.toml file controls the CLI version and optional features.5
Set up credentials
.env file will contain different values as shown below:- Device code
- Interactive
- Client credentials
- Token
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.6
Set up folder structure
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:Troubleshooting
Windows: path length error —ERROR: 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.