Choose the instance (use, --instance) and delete a school #27

Merged
oliver.maklott merged 1 commit from instance-choice into main 2026-10-09 13:02:40 +00:00

Feedback of 2026-10-09: with two instances on one host, a new school and its login link went to the first instance; there was no way to choose an instance (except --dir) and none to remove the school (D017).

  • --instance <name> for one command; apcmd use [<name>] chooses for the next commands (registry current), without a name shows it
  • order: --dir > --instance > AIVOPOD_HOME > apcmd use > the only instance (also outside /opt/aivopod)
  • several instances and none chosen: every command except install, list, use, version, self-update, snapshot restore stops and names them
  • with several instances every command first says „Instanz „…“ (dir)“; apcmd list marks the chosen with *; install of a further instance points to apcmd use
  • apcmd school delete --school <name|id> [--yes]: dry run with what goes, backup advice, the school's name as confirmation (without a terminal only --yes); needs platform ≥ 0.11.0-rc.6 (delete-school, aivopod-app #197)
  • tests (tests/instance_choice_test.ts): stop with names, --instance, use, AIVOPOD_HOME, single instance, delete with wrong/right name and --yes
  • help, README, D017; version 0.10.0 (merging releases it)

🤖 Generated with Claude Code

Feedback of 2026-10-09: with two instances on one host, a new school and its login link went to the first instance; there was no way to choose an instance (except `--dir`) and none to remove the school (D017). - [x] `--instance <name>` for one command; `apcmd use [<name>]` chooses for the next commands (registry `current`), without a name shows it - [x] order: `--dir` > `--instance` > `AIVOPOD_HOME` > `apcmd use` > the only instance (also outside /opt/aivopod) - [x] several instances and none chosen: every command except install, list, use, version, self-update, snapshot restore stops and names them - [x] with several instances every command first says „Instanz „…“ (dir)“; `apcmd list` marks the chosen with `*`; `install` of a further instance points to `apcmd use` - [x] `apcmd school delete --school <name|id> [--yes]`: dry run with what goes, backup advice, the school's name as confirmation (without a terminal only `--yes`); needs platform ≥ 0.11.0-rc.6 (`delete-school`, aivopod-app #197) - [x] tests (`tests/instance_choice_test.ts`): stop with names, `--instance`, `use`, AIVOPOD_HOME, single instance, delete with wrong/right name and `--yes` - [x] help, README, D017; version 0.10.0 (merging releases it) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aivopod/apcmd!27
No description provided.