alpha

Teaches Cursor the Ankra CLI for managing Kubernetes clusters, with commands for login, organisations, clusters, stacks, credentials and safe token rotation.
description: "Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform"
globs: **/.sh, **/.yaml, **/.yml, Makefile, **/Makefile, **/.md
alwaysApply: false
Ankra is a Kubernetes cluster management platform. Its CLI (ankra) lets you manage organisations, clusters, add-ons, stacks, Helm releases, credentials, and tokens from the terminal.
ankra login~/.ankra.yaml; override with --config <path>--base-url or ANKRA_BASE_URL--token or ANKRA_API_TOKEN (prefer env var in CI)ankra logout# ~/.ankra.yaml example
base_url: https://api.ankra.io
token: ${ANKRA_API_TOKEN}
ankra org list # List accessible organisations
ankra org switch <org-name> # Switch active organisation
ankra org create <name> # Create a new organisation
ankra org invite <email> # Invite a user to the current org
ankra org members # List members of the current org
ankra cluster list # List all clusters in the org
ankra cluster select <name> # Set the active cluster context
ankra cluster info # Show details about the active cluster
ankra cluster provision # Provision a new cluster
ankra cluster deprovision # Deprovision (destroy) the active cluster
ankra cluster reconcile # Reconcile cluster to desired state
ankra delete cluster <name> # Delete a named cluster
ankra cluster info before destructive operationsankra cluster reconcile after config changes before assuming state is correctankra cluster addons list # List installed add-ons
ankra cluster addons available # List available (installable) add-ons
ankra cluster addons settings <addon> # Show current settings for an add-on
ankra cluster addons update <addon> # Update add-on configuration
ankra cluster addons uninstall <addon> # Uninstall an add-on
ankra cluster stacks list # List stacks in the cluster
ankra cluster stacks create <name> # Create a new stack
ankra cluster stacks delete <name> # Delete a stack
ankra cluster stacks rename <old> <new> # Rename a stack
ankra cluster stacks clone <src> <dst> # Clone a stack
ankra cluster stacks history <name> # View stack change history
clone over create when replicating an existing working stackhistory before rolling back to understand what changedankra cluster manifests list # List deployed manifests
ankra cluster operations list # List in-progress or recent operations
ankra cluster operations cancel <id> # Cancel a running operation
ankra cluster agent status # Check agent health
ankra cluster agent token # Retrieve agent bootstrap token
ankra cluster agent upgrade # Upgrade the in-cluster agent
agent status if cluster commands seem unresponsiveankra cluster helm releases # List Helm releases in the cluster
ankra cluster helm uninstall <release> # Uninstall a Helm release
ankra helm registries # List configured Helm registries
ankra helm credentials # List Helm registry credentials
ankra cluster hetzner create # Create a Hetzner-backed cluster
ankra cluster hetzner scale # Scale the cluster node count
ankra cluster hetzner upgrade # Upgrade Kubernetes version
ankra cluster hetzner workers # Manage worker node groups
ankra cluster hetzner node-group # Node group management
ankra charts list # List available charts
ankra charts search <term> # Search charts
ankra charts info <chart> # Detailed chart information
ankra credentials list # List stored credentials
ankra credentials get <name> # Retrieve a credential
ankra credentials validate <name> # Validate a credential
ankra credentials delete <name> # Delete a credential
ankra credentials hetzner --name <n> --token <t> # Store Hetzner API token
ankra credentials ovh ... # Store OVH credentials
ankra credentials upcloud ... # Store UpCloud credentials
ANKRA_API_TOKEN env varankra credentials validate <name>ankra tokens list # List API tokens
ankra tokens create --name <name> # Create a new API token
ankra tokens revoke <id> # Revoke a token (keeps record)
ankra tokens delete <id> # Permanently delete a token
ankra chat # Start AI-powered troubleshooting session
Use ankra chat when facing ambiguous errors — it provides contextual guidance.
| Flag | Env Var | Description |
|------|---------|-------------|
| --base-url <url> | ANKRA_BASE_URL | Override API base URL |
| --token <token> | ANKRA_API_TOKEN | API authentication token |
| --config <path> | — | Path to config file (default ~/.ankra.yaml) |
ANKRA_API_TOKEN in CI pipelines; never hard-code tokens--token for one-off scripts where env var injection is not possibleankra cluster select before cluster-scoped commands in scriptsjq for structured processing where JSON output is availableankra cluster operations list in CI to poll for async operation completionset -euo pipefail to shell scripts using the Ankra CLIankra login
ankra org switch my-org
ankra cluster hetzner create
ankra cluster select my-new-cluster
ankra cluster agent status
ankra cluster addons available
ankra cluster addons update some-addon
ankra cluster reconcile
ankra cluster select my-cluster
ankra charts search my-app
ankra charts info my-app
ankra cluster stacks create my-stack
ankra cluster manifests list
ankra tokens create --name ci-token-new
# Update CI secret with new token
ankra tokens revoke <old-token-id>
ankra credentials validate my-cloud-cred
Public domain (CC0 1.0) · by awesome-cursorrules contributors · source · posted by @OpenSourceBuffGuy on promptparty.com


Sea turtle carrying floating film studio island
Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.
image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost
Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.
video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

Cozy Pixel Art Farm Island Village
Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.
image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape
Loading reviews…
Loading comments…