Update Arcane

Update the Arcane CLI, then a repository's managed files with spell update, keeping your edits and answering any skipped setup questions.

Documented for v1.24.1 · Checked

Written against v1.14.0; current release is v1.24.1.

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 update refuses to run over uncommitted changes or outside a git repository.

Steps

  1. Update the CLI, then check its version.

    npm install -g arcane-cli
    
    spell --version
    
    1.14.0
    
  2. 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.
    
  3. 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 update
    
      Merged your edits into: .arcane/governance/naming-conventions.md
    …
    ✓ Updated 198 files.
    
  4. Commit the update. Check that git status --short lists only Arcane's files before you stage them.

    git status --short
    git add -A
    git commit -m "Update Arcane"
    
  5. 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 guarded
    
    Recorded from flags:
        role: "consumer"
        tracking_mode: "internal"
        external_provider: null
        content_sensitivity: "standard"
        push_policy: "guarded"
    
  6. Commit the answers. Check that git status --short lists 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
  • Every option, including installing components your profile gained (--add-new) and removing files a release dropped (--prune): spell update and spell status.
  • Checking for a newer release from inside a session: spell-arcane-version.

Was this page helpful?

Your answer

Please don't include personal information.