Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Velero CLI

$ velero Foundation High Risk
VMware / CNCF · Cloud & Infra · Apache-2.0 · macos / linux / windows

Velero CLI (velero) manages Kubernetes cluster backups, schedules, and volume snapshots, supporting -o json (--output json) across get commands, --kubecontext isolation, and mandatory --confirm confirmation on deletions.

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
brew install velero
CLI vs MCP Decision CLI Preferred vs MCP

velero queries Velero CRDs and storage locations directly via kubeconfig with -o json.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

-o json works on get subcommands and --confirm prevents accidental unattended deletes.

  • Supports -o json on get commands and --confirm on delete
Trust & Safety 19 / 25

Deletes prompt unless --confirm is passed, though restore create and storage credential management require strict care.

  • Requires --confirm for non-interactive deletion
Setup & Portability 14 / 15

Single static Go binary via Homebrew and GitHub releases across macOS, Linux, and Windows.

  • Single Go binary via brew install velero
Utility & Efficiency 12 / 15

Standard tool for cluster backup/restore and migration snapshots.

  • Declarative Backup/Restore CRD workflows
Maintenance & Lineage 9 / 10

Official vmware-tanzu/velero (CNCF ecosystem) maintained under Apache-2.0.

  • Official vmware-tanzu/velero repository
Docs & Verifiability 8 / 10

Clear velero.io/docs/ guide and Cobra --help.

  • Official docs at velero.io/docs/main/

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Reads cluster access from ~/.kube/config (KUBECONFIG) and optional CLI defaults from ~/.config/velero/config.json.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

CLI is free (Apache-2.0); stored backups and snapshots incur cloud object-storage/snapshot charges.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Velero CLI Agent Rules
- Always pass `--kubecontext` and `-n velero` (or target namespace) explicitly.
- Use `-o json` on `velero backup get`, `restore get`, and `schedule get`.
- Never pass `--confirm` on `velero backup delete` or run `velero restore create` without explicit human approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

List Velero backups as JSON
velero backup get -o json

Returns backup phases, expiration timestamps, and error counts in JSON.

Inspect backup storage locations
velero backup-location get -o json

Verifies object-storage backup target availability and sync status.

Controlled Writes & Previews

Trigger a scoped namespace-only backup
velero backup create pre-upgrade-snap --include-namespaces app-staging --wait

Creates a targeted backup of a single namespace before a risky change.

Strengths for Agents

  • + Consistent -o json on backup get, restore get, and backup-location get.
  • + Mandatory --confirm flag protects backups from accidental deletion.
  • + Explicit --kubecontext isolation in a single Go binary.

Caveats & Pitfalls

  • ! velero restore create lacks a --dry-run simulation mode.
  • ! velero backup describe emits human-readable text rather than JSON.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI