Support multiple Slug API websites #207

Closed
opened 2026-06-26 15:37:30 -05:00 by erik · 2 comments
Owner

Goal

Allow the Slug CLI to work with multiple configured websites that support the Slug API schema and pass slug doctor.

Requirements

  • Design a configuration approach for managing multiple Slug-compatible websites.
  • Replace or extend the current single baseApi behavior.
  • Ensure CLI commands can target the intended configured website.
  • Preserve existing single-site behavior where possible.

Acceptance criteria

  • Multiple websites can be configured for the Slug CLI.
  • A configured website can be selected or targeted by CLI commands.
  • Existing baseApi usage is migrated, replaced, or made compatible with the new design.
  • slug doctor can validate the selected configured website.

Dependencies

  • None
## Goal Allow the Slug CLI to work with multiple configured websites that support the Slug API schema and pass `slug doctor`. ## Requirements - Design a configuration approach for managing multiple Slug-compatible websites. - Replace or extend the current single `baseApi` behavior. - Ensure CLI commands can target the intended configured website. - Preserve existing single-site behavior where possible. ## Acceptance criteria - [ ] Multiple websites can be configured for the Slug CLI. - [ ] A configured website can be selected or targeted by CLI commands. - [ ] Existing `baseApi` usage is migrated, replaced, or made compatible with the new design. - [ ] `slug doctor` can validate the selected configured website. ## Dependencies - None
Author
Owner

Synced from todu comment by @todu on 2026-06-26T23:19:20.148Z

PR review: approved

PR: #209

Summary

Reviewed the PR against the task acceptance criteria. The CLI now uses explicit named Slug API sites, requires --site <name> for API-backed commands, supports named-site config commands, and updates login/doctor to operate on the selected site. Docs, Makefile dev config, and tests were updated.

Acceptance criteria

  • Multiple websites can be configured — met.
  • A configured website can be selected or targeted — met via global --site <name>.
  • Existing baseApi usage is migrated/replaced/made compatible — met as intentional replacement with named sites only per approved design.
  • slug doctor validates the selected configured website — met, including manual branch CLI verification against slugkit.com.

Blocking issues: 0
Warnings: 0

Verdict: approved. CI is green.

_Synced from todu comment by @todu on 2026-06-26T23:19:20.148Z_ ## PR review: approved PR: https://forge.caradoc.com/erik/slugkit/pulls/209 ### Summary Reviewed the PR against the task acceptance criteria. The CLI now uses explicit named Slug API sites, requires `--site <name>` for API-backed commands, supports named-site config commands, and updates `login`/`doctor` to operate on the selected site. Docs, Makefile dev config, and tests were updated. ### Acceptance criteria - [x] Multiple websites can be configured — met. - [x] A configured website can be selected or targeted — met via global `--site <name>`. - [x] Existing `baseApi` usage is migrated/replaced/made compatible — met as intentional replacement with named sites only per approved design. - [x] `slug doctor` validates the selected configured website — met, including manual branch CLI verification against `slugkit.com`. Blocking issues: 0 Warnings: 0 Verdict: approved. CI is green.
erik 2026-06-26 20:37:25 -05:00
Author
Owner

Synced from todu comment by @todu on 2026-06-27T01:36:39.455Z

Closing summary

PR #209 was reviewed, CI passed, approved, and merged into main.

Acceptance criteria were satisfied:

  • Multiple websites can be configured via named sites entries and slug config site commands.
  • CLI commands can target a configured website explicitly with --site <name>.
  • The old single-site/base API behavior was intentionally replaced with named-site-only config per approved task direction.
  • slug doctor validates the selected configured website; this was covered by tests and manually verified against https://slugkit.com/api/v1.

Local main was fast-forwarded after merge and the feature branch was cleaned up.

_Synced from todu comment by @todu on 2026-06-27T01:36:39.455Z_ ## Closing summary PR https://forge.caradoc.com/erik/slugkit/pulls/209 was reviewed, CI passed, approved, and merged into `main`. Acceptance criteria were satisfied: - Multiple websites can be configured via named `sites` entries and `slug config site` commands. - CLI commands can target a configured website explicitly with `--site <name>`. - The old single-site/base API behavior was intentionally replaced with named-site-only config per approved task direction. - `slug doctor` validates the selected configured website; this was covered by tests and manually verified against `https://slugkit.com/api/v1`. Local `main` was fast-forwarded after merge and the feature branch was cleaned up.
Sign in to join this conversation.
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
erik/slugkit#207
No description provided.