How-to
Update Arcane
Move the CLI and a repository's Arcane files to a new release without losing your edits.
Prerequisites
- A git repository with Arcane installed by
spell init. - Everything in it committed.
spell updaterefuses to run over uncommitted changes or outside a git repository.
Steps
-
Update the CLI, then check its version.
npm install -g arcane-clispell --version1.14.0 -
Preview the update in the repository. It lists each file it would update or preserve, and any setup questions still unanswered.
spell update --dry-run[dry-run] Would update 198 files. [dry-run] Would ask 4 manifest retrofit questions: role, tracking_mode, content_sensitivity, push_policy. -
Run the update. A managed file you edited is three-way merged with the new version, and where your edit and the release disagree you get conflict markers to resolve, as in a git merge.
spell updateMerged your edits into: .arcane/governance/naming-conventions.md … ✓ Updated 198 files. -
Commit the update. Check that
git status --shortlists only Arcane's files before you stage them.git status --short git add -A git commit -m "Update Arcane" -
If the update printed
Skipped N manifest questions, it had no terminal to ask them in. Answer them with the flags it printed, for example:spell update --role consumer --tracking-mode internal --content-sensitivity standard --push-policy guardedRecorded from flags: role: "consumer" tracking_mode: "internal" external_provider: null content_sensitivity: "standard" push_policy: "guarded" -
Commit the answers. Check that
git status --shortlists only Arcane's files before you stage them.git status --short git add -A git commit -m "Answer the Arcane setup questions"
Verify it worked
spell status lists every installed component with its version, which now matches the CLI.
spell status
Component Files Version
------------------------------- ----- -------
git-conventions 1 1.14.0
Related
- Every option, including installing components your profile gained (
--add-new) and removing files a release dropped (--prune):spell updateandspell status. - Checking for a newer release from inside a session:
spell-arcane-version.