Skip to content

feat(cli): list running containers on the connected Manager - #27

Open
horner wants to merge 1 commit into
mainfrom
feat/list-running-containers
Open

horner wants to merge 1 commit into
mainfrom
feat/list-running-containers

Conversation

@horner

@horner horner commented Nov 30, 2026

Copy link
Copy Markdown
Member

Closes #26.

mieweb containers list queries the connected Manager for running containers and displays the site ID, container ID, hostname, node, and status. --json exposes the same fields for scripts. The command uses the configured site when one is selected and checks all visible sites otherwise.

The listing and target banner share Manager URL and site resolution. Integration tests for whoami and inventory share one HTTP fixture, covering saved logins, shared containers, site selection, empty results, API failures, and Wrangler forwarding.

pnpm typecheck, pnpm test, and pnpm check:packs passed locally. The inventory tests ran against a local Manager fixture. A live inventory check requires cluster credentials.

Copilot AI balanced review requested due to automatic review settings November 30, 2026 16:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new request path treats HTTP 403 as a generic error instead of an authentication failure, omitting the login guidance required by the existing provider contract.

1 open issue
What changed in this PR

Adds mieweb containers list for inspecting running containers on the connected opensource-server Manager, addressing #26 and supporting use outside a project directory.

Changes:

  • Adds table and JSON output, scoped to the selected site or all visible sites, including shared containers.
  • Shares Manager URL and site resolution with the target banner while preserving Cloudflare forwarding to Wrangler.
  • Adds integration coverage, usage documentation, and a minor-release changeset.
File Description
README.md Adds inventory examples and target-banner documentation.
packages/​cli/​test/​command-output.test.mjs Shares the Manager fixture and tests inventory, failures, and Wrangler forwarding.
packages/​cli/​src/​provider.mjs Extracts shared Manager URL and site resolution.
packages/​cli/​src/​index.mjs Routes Manager container commands and updates help.
packages/​cli/​src/​containers.mjs Implements authenticated inventory requests and table/JSON output.
packages/​cli/​README.md Documents inventory scope, credentials, and target behavior.
.changeset/​list-running-containers.md Records the CLI feature for a minor release.

Review effort: Balanced

redirect: 'manual',
signal: AbortSignal.timeout(30_000),
});
if (response.status === 401) throw new Error(`Manager rejected the credentials. ${loginHint}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List running containers on the connected opensource-server Manager

2 participants