Skip to content

08 · update-cli-without-cli

What this scenario proves

The --without={module} flag (and its agent-prompt equivalent) actually removes an optional module on update — including deleting the on-disk files of that module, not merely flagging it as "skipped going forward".

This is the regression test for the most common user request:

"I installed Archon with the cli module last week, but our CI image can't have Node. Can I drop just the CLI without uninstalling Archon entirely?"

Yes. This scenario proves it.

Test environment

Fixtureoutput of scenario 01 (cli module installed)
IDECursor
OSsame as scenario 01
Archon sourcehttps://aaep.site/manifest.json
Manifest version under testv0.1.0 (no version bump needed)

Pre-conditions

  1. Scenario 01 ✅, with cli module included (default).
  2. tools/archon-cli/ exists on disk.
  3. git status clean.

Steps

text
1. In Cursor, paste exactly:
     hi archon, update yourself but without the cli module
2. Or equivalently via CLI:
     npx @archon/cli@latest update --without=cli --yes
3. The agent / CLI prints a planned-changes table that should include:
     - REMOVE  tools/archon-cli/...        (every cli file)
     - KEEP    .archon/...                  (core unchanged)
     - KEEP    .cursor/...                  (binding unchanged)
4. Confirm.
5. Verify tools/archon-cli/ no longer exists.
6. Verify .archon/manifest.md or wherever opted-in modules are
   tracked reflects "cli: not installed".

Expected outcome

CheckExpected
tools/archon-cli/ removedyes
Other modules untouchedyes
.archon/drift.md rowsunchanged
.archon/VERSIONunchanged
Subsequent archon sync (scenario 09) reports cli as "not installed" — not as "0/N ok"yes
python3 scripts/archon-check.py --root . exit code0
npm run validate exit code0

Demo recordings

Will be replaced by docs/public/videos/update-cli-without-cli.mp4 once recorded. See videos/README for upload conventions.
Will be replaced by docs/public/asciinema/update-cli-without-cli.cast embedded via the asciinema-player web component. See asciinema/README for the recording command.

Run records

The table below is rendered live from JSON written by the sandbox runner (scripts/sandbox-run.mjs) under docs/testing/sandbox/runs/update-cli-without-cli/. To add a new row, run

bash
node scripts/sandbox-run.mjs --only=update-cli-without-cli
Started (UTC)ManifestRunnerResultDurationNotesRecord
2026-06-08 08:17:14 UTCv0.1.0cli✅ passing341 msJSON
2026-06-07 07:10:19 UTCv0.1.0cli✅ passing339 msJSON
2026-06-06 06:34:43 UTCv0.1.0cli✅ passing353 msJSON
2026-06-05 07:14:09 UTCv0.1.0cli✅ passing335 msJSON
2026-06-04 07:56:46 UTCv0.1.0cli✅ passing377 msJSON
2026-06-03 08:24:20 UTCv0.1.0cli✅ passing353 msJSON
2026-06-02 08:00:54 UTCv0.1.0cli✅ passing347 msJSON
2026-06-01 08:40:48 UTCv0.1.0cli✅ passing353 msJSON
2026-05-31 07:02:26 UTCv0.1.0cli✅ passing348 msJSON
2026-05-30 06:27:56 UTCv0.1.0cli✅ passing337 msJSON
2026-05-29 06:59:42 UTCv0.1.0cli✅ passing353 msJSON
2026-05-28 06:59:36 UTCv0.1.0cli✅ passing340 msJSON
2026-05-27 07:09:44 UTCv0.1.0cli✅ passing344 msJSON
2026-05-26 06:52:11 UTCv0.1.0cli✅ passing319 msJSON
2026-05-25 07:20:24 UTCv0.1.0cli✅ passing342 msJSON
2026-05-24 06:41:55 UTCv0.1.0cli✅ passing360 msJSON
2026-05-23 06:16:52 UTCv0.1.0cli✅ passing341 msJSON
2026-05-22 06:54:20 UTCv0.1.0cli✅ passing339 msJSON
2026-05-21 06:58:07 UTCv0.1.0cli✅ passing335 msJSON
2026-05-20 06:53:40 UTCv0.1.0cli✅ passing353 msJSON
2026-05-19 06:53:21 UTCv0.1.0cli✅ passing344 msJSON
2026-05-18 07:01:49 UTCv0.1.0cli✅ passing367 msJSON
2026-05-17 06:27:39 UTCv0.1.0cli✅ passing345 msJSON
2026-05-16 06:04:43 UTCv0.1.0cli✅ passing349 msJSON
2026-05-15 06:38:02 UTCv0.1.0cli✅ passing341 msJSON
2026-05-14 06:28:59 UTCv0.1.0cli✅ passing348 msJSON
2026-05-13 06:30:27 UTCv0.1.0cli✅ passing350 msJSON
2026-05-12 06:19:03 UTCv0.1.0cli✅ passing335 msJSON
2026-05-11 06:45:37 UTCv0.1.0cli✅ passing311 msJSON
2026-05-10 06:16:47 UTCv0.1.0cli✅ passing368 msJSON
2026-05-09 05:52:42 UTCv0.1.0cli✅ passing314 msJSON
2026-05-08 05:33:38 UTCv0.1.0cli✅ passing374 msJSON
2026-05-07 11:01:06 UTCv0.1.0cli✅ passing328 msJSON
2026-05-07 09:54:56 UTCv0.1.0cli✅ passing356 msJSON
2026-05-07 09:45:16 UTCv0.1.0cli✅ passing398 msJSON
2026-05-07 06:15:47 UTCv0.1.0cli❌ failing334 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-06 13:05:55 UTCv0.1.0cli❌ failing352 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-06 10:24:37 UTCv0.1.0cli❌ failing345 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-06 06:10:26 UTCv0.1.0cli❌ failing349 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-06 00:55:45 UTCv0.1.0cli❌ failing345 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-06 00:40:11 UTCv0.1.0cli❌ failing353 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-05 15:00:36 UTCv0.1.0cli❌ failing298 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-05 14:55:20 UTCv0.1.0cli❌ failing354 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-05 14:22:55 UTCv0.1.0cli❌ failing351 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-05 14:04:55 UTCv0.1.0cli❌ failing339 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-05 14:00:02 UTCv0.1.0cli❌ failing329 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-05 13:59:14 UTCv0.1.0cli❌ failing348 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON
2026-05-05 13:55:06 UTCv0.1.0cli❌ failing346 msfailed assertions: dir_exists: tools/archon-cli: missing dir: tools/archon-cli file_exists: tools/archon-cli/bin/archon.mjs: missing: tools/archon-cli/bin/archon.mjsJSON

Known limitations

  • Does not test re-adding the cli later via --with=cli. That is a separate scenario worth adding (update-add-cli-back) once the basic remove path is green.
  • Does not test removing a required module — that should fail loudly. A negative scenario update-without-required-fails is a good follow-up.

Cross-references

json
{
  "runnable": "cli",
  "fixture": "fixtures/sandbox-node-ts",
  "ide_platform": "cursor",
  "prerequisites": [
    {
      "name": "archon install (no cli)",
      "cli": "install",
      "flags": [
        "--without=cli"
      ]
    }
  ],
  "steps": [
    {
      "name": "archon update with cli",
      "cli": "update",
      "flags": [
        "--with=cli"
      ]
    }
  ],
  "assertions": [
    {
      "dir_exists": "tools/archon-cli"
    },
    {
      "file_exists": "tools/archon-cli/bin/archon.mjs"
    }
  ]
}

Released under the Apache-2.0 License.