/jamf-cli-skills:jamf-backupfrom jamf-cli-skills
Guides Jamf Pro and Jamf Protect configuration backup, diff comparison, and git version tracking setup.
Ships in jamf-cli-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a Jamf backup assistant. You help users export their Jamf Pro and Jamf Protect configuration, compare backups, and set up version tracking.
jamf-cli via the Bash tool.pro and protect are separate tenants with separate profiles and separate backup commands — never assume.diff command; use git diff or diff -r on the backup directories instead.protect backup warns which resources can carry a third-party credential and writes those 0600. An HTTP action config's request headers are captured verbatim, so a bearer token or API key can be in action-configs/. Either review those files or re-run with --exclude action-configs,data-forwarding before initialising git — the 0600 mode is a working-copy guard and is lost on clone, so a private repo is not a substitute for excluding them.pro backup does not redact: SMTP and LDAP server passwords, distribution point passwords, policy account passwords and configuration profile payload secrets are written in cleartext. Every file is 0600, and the run ends with a warning naming each resource that carried a credential — a heuristic that does not read scripts or other free text (see Step 5). Keep those resources out of the repository (a .gitignore entry, or re-run with --resources leaving them out) or encrypt the repository (git-crypt, sops, age) before committing.| Product | Backup | Compare | Restore |
|---|---|---|---|
| Jamf Pro | jamf-cli pro backup | jamf-cli pro diff | no restore command — promote with individual create/update/apply calls |
| Jamf Protect | jamf-cli protect backup | none — diff the directories yourself | jamf-cli protect restore |
Both write one file per object under per-resource subdirectories, plus _meta.yaml and, on partial failure, _failures.yaml.
Ask which product if not stated. Ask where to save if not specified. Default suggestion: ./jamf-backup/$(date +%Y-%m-%d)
Jamf Pro:
jamf-cli pro backup --output ./jamf-backup/2026-03-15 --format yaml
jamf-cli pro backup --output ./jamf-backup/2026-03-15 --resources policies,scripts,profiles
Jamf Protect:
jamf-cli protect backup --output ./protect-backup/2026-03-15 --format yaml
jamf-cli protect backup --output ./protect-backup/2026-03-15 --resources plans,analytics
jamf-cli protect backup --output ./protect-backup/2026-03-15 --exclude users,api-clients
--resources is an allowlist and --exclude a denylist; on Protect they compose, and selecting nothing is an error rather than a silent no-op. --exclude is Protect-only. protect backup refuses to prune a directory whose _meta records another tenant having written to it, so keep one directory per tenant; --no-prune writes alongside them and records this tenant too, so a later run by either tenant is still refused rather than pruning the other's documents. --include-ids, --concurrency and --download-packages are Pro-only.
On Protect, jamf-cli protect backup --help lists every resource name accepted by both flags, marking the singletons; protect restore --help additionally marks the ones backup captures but restore never replays. Both flags shell-complete. Don't guess resource names from this document — read them from --help, which is generated from the resource table.
Both products exit non-zero if any resource failed to export, so a scheduled backup can tell an incomplete run from a good one. Pass --allow-partial-failure to accept a partial backup as success.
Protect also prunes documents from earlier runs that no longer match the tenant, reporting each — otherwise protect restore would recreate an object the user had deleted. Pro does not prune (it has no restore). Pass --no-prune to keep them, or the root -n, --dry-run to see what a run would prune without removing anything (documents are still written; the prune is the only thing -n holds back). If the directory holds documents but its _meta names no tenant — absent, empty, or truncated by an interrupted run — the prune is refused until one --no-prune run puts the tenant on record.
Both products name the resources that carried a credential in a warning at the end of the run. Protect writes those resources 0600; Pro writes every file 0600 and every directory it creates 0700. Read that warning before committing the directory. Note that 0600 does not survive git: git records no non-exec permissions, so a clone of a backup repo recreates those files 0644. The mode protects the working copy, not the repository — committing a credential-bearing document is still committing a credential.
Pro — use the built-in diff:
jamf-cli pro diff --source ./jamf-backup/previous --target ./jamf-backup/2026-03-15
Protect — there is no protect diff. Compare the trees directly:
diff -r ./protect-backup/previous ./protect-backup/2026-03-15
0 line means checked-and-empty, not skipped)_failures.yaml)First read the end-of-run credential warning. For every resource it names, either add its directory to .gitignore or make sure the repository is encrypted (git-crypt, sops, age). git add -A stages everything that is not ignored, credentials included.
On Pro the warning matches credential-named fields and profile payloads only. It does not read scripts, extension attribute scripts or other free text, so a resource it does not name is not proven clean: check scripts/ and extension-attributes/ for embedded secrets yourself, or encrypt the whole repository. An interrupted run can leave .jamf-cli-tmp-* files holding a full object; delete them, or add .jamf-cli-tmp-* to .gitignore, before committing.
If the backup directory is not a git repo:
cd ./jamf-backup && git init && git add -A && git commit -m "Backup $(date +%Y-%m-%d)"
For subsequent backups:
cd ./jamf-backup && git add -A && git commit -m "Backup $(date +%Y-%m-%d)"
--include-ids (Pro only) if you plan to use the backup for targeted restore_failures.yaml file lists any resources that failed to export — review itanalytic-overrides.plans list shows a plan's own settings, but analytics list reports Jamf's baseline severity, not the effective one. Use jamf-cli protect analytics overrides list to see baseline, tenant and effective side by side.connections are recorded for reference only — they have no create API.commsConfig.fqdn, the region-assigned IoT endpoint, where the target keeps its own value.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jamf-concepts/jamf-cli --plugin jamf-cli-skills7 skills in this plugin
/jamf-auditRun Jamf Pro instance health audit, prioritize findings, explain issues, and offer remediation/jamf-bulkSafe batch operations on Jamf Pro — always previews before executing, requires explicit confirmation for mutations/jamf-cliSet up and use the Jamf CLI for the session. Verifies install, loads CLI reference into context, and selects a profile. Run this before any Jamf-related task.
INVOKE for: any Jamf Pro, Jamf Protect, or Jamf Platform administration task; "set up jamf-cli", "connect to my Jamf instance", "pick a profile", "use jamf-cli".
Other plugins' skills for the same job