Before you start
- Projects are on for your organisation. They are on for every organisation on the new portal (its address carries
/next). While they are off, everyankra projectcommand exits 3 and says so. - You hold
projects.manage. Owners and admins hold it at organisation scope. Listing projects needs onlyprojects.read, which every built-in role holds. - Ankra CLI logged in to the organisation (
ankra org current).
1. Create the project
--slug it is derived from the name.
In the console, the same is under Settings → People and access → Projects.
2. Move resources into it
A cluster, application, environment, stack profile, pipeline repository, AI automation or AI workspace belongs to exactly one project. Move each one withankra project move:
operations_in_flight: wait for them to finish and move it again.
The shared kinds - credentials, registries, backup vaults, object storage buckets, organisation variables, notification routes and DNS zones - are either in one project or organisation-wide. Keep a credential every team uses organisation-wide, and move the ones that only this team should use:
3. Give people access to the project
There are two ways in, depending on whether the person should see the rest of the organisation. A member who should see only this project is invited with the membership role Project only. They reach the projects they hold a role in and nothing else of the organisation:--project-role is admin, operator, member or viewer (member by default).
An existing member who needs more in this project keeps their organisation role and gets a second role at project scope:
4. Pin tokens to the project
A token minted in a project stays there: it reads and writes only in that project, and a request that names another project is refused. Pin every CI job and agent to the project it works in.--project is not pinned. In the console, the service token and MCP token dialogs pin the token to the project you choose. See Service Tokens.
From Terraform, ankra_project creates the project and a project_id on ankra_service_token pins a token to it. See Projects and GitHub OIDC trust.
5. Work in the project
The CLI acts in one project per command. Switch for the session, or name a project for one command:ankra project switch saves the choice on this machine and moves your current project in the console too. A pinned token cannot switch, and ANKRA_PROJECT does the same as --project for scripts.
Give the project its own budget once its clusters are in it:
Verify
ankra project members paymentslists the people you expected, each with how they reach the project.ankra --project payments cluster listlists the clusters you moved, andankra --project default cluster listno longer does.- Signed in as a project-only member, the project switcher offers only Payments.
Troubleshooting
Related
- Projects - the model behind this guide.
- Roles & Access - scopes and what each role holds.
ankra projectreference