Local state and checkpoints
What the CLI stores under ~/.nr and how resume depends on it
Registration is long-running and multi-phase. The CLI persists progress on the agent VM so a failed run can continue without redoing completed work.
Where state lives
Default directory: ~/.nr/ (override with --config-dir).
Typical contents:
| Path (conceptual) | Purpose |
|---|---|
config.yaml | API URL, logging, optional embedded token |
tokens / keyring | OAuth credentials |
bin/ | CLI-managed helm, liqoctl, and similar tools |
clusters/<name>/ | Per-agent checkpoints, register scope, metadata |
nr.log | Local log file (if configured) |
debug-<timestamp>/ | Bundles from nr cluster debug |
Exact filenames can evolve; treat ~/.nr as private to that machine and user.
Checkpoints
Each successful phase records a checkpoint. Commands that use them:
nr cluster register --resumenr cluster rollbacknr cluster resetnr cluster recovernr cluster status
Register also stores a register scope (for example whether operator install was skipped, which namespaces were offloaded) so later verify / resume can honor the same intent without re-passing every flag.
Why you should not copy state between hosts
State includes paths, kubeconfig references, and assumptions about what is installed on that VM. Copying ~/.nr to another machine will desynchronize checkpoints from reality. Use recover on the original host, or deregister and register cleanly on a new VM.
Cleanup
- Soft:
nr cluster reset— clear checkpoints, keep agent identity - Hard local + API:
nr cluster deregister - Debug artifacts: delete old
~/.nr/debug-*directories after redacting and filing tickets