Claims CLI¶
Repository: stuttgart-things/claims
Overview¶
The claims CLI is the primary tool for creating and deleting Crossplane claims through the platform. It works independently of Backstage and can be used interactively, in CI/CD pipelines, or as a backend for Backstage custom actions.
Commands¶
claims render (existing)¶
Renders claim templates and creates pull requests.
1 2 3 4 5 6 7 8 9 10 11 | |
Changes needed: After rendering, also add an entry to claims/registry.yaml.
claims delete (new)¶
Deletes claims by removing their files and creating a pull request.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
What it does:
- Resolves claim metadata (from
--categoryflag, registry API, orregistry.yaml) - Clones the repository (or uses local checkout)
- Creates a new branch (
delete-{name}) - Removes
claims/{category}/{name}/directory - Removes the entry from parent
kustomization.yaml - Removes the entry from
claims/registry.yaml - Commits, pushes, and creates a PR
claims list (new)¶
Lists existing claims.
1 2 3 4 5 | |
Configuration¶
| Flag | Env Var | Description |
|---|---|---|
--api-url |
CLAIM_MACHINERY_API_URL |
claim-machinery-api URL for rendering |
--registry-url |
CLAIM_REGISTRY_URL |
claim-registry API URL for listing/resolving |
--git-user |
GIT_USER |
Git username for authentication |
--git-token |
GIT_TOKEN / GITHUB_TOKEN |
Git token for authentication |
--repo |
- | GitHub repository slug (e.g., stuttgart-things/harvester) |