Skip to main content
Generated from the Homelab v0.49.2 release (source 2614eaba28d8). For an installed version, homelab api <command> --help is authoritative.

homelab api services execute-application-adoption

Execute the exact reviewed source plan with explicit Owner approval. Revalidates the retained digest, source identity, revision and release. Only an authenticated pinned-CLI custody receipt establishes membership. Accounts, configuration and persistent data are preserved; no new runtime is created for adopt_in_place. Mode stack_it executes the reviewed own-application plan digest. Moving to another Node is not supported.

homelab api services execute-own-application-operation

Approve one reviewed own application change. Runs exactly the step a completed dry run reviewed, at most 15 minutes after it completed and only once per review (start, stop, restart, rollback, tag update, checkpoint rollback or checkpoint discard) with its review digest. Homelab issues the own-application.lifecycle capability for this application, action, operation and review digest (at most 15 minutes); the node refuses any other. A tag update re-resolves the tag, checkpoints the data, verifies and rolls image and data back on failure. Requires Owner approval.

homelab api services get

Get desired, observed, health, access, and action capabilities for one service.

homelab api services get-own-application-operation

Read one own application operation and its node answer. Returns the job status and the projected node answer: outcome and reason code, review digest, the prior and target image of a tag update (target_check is always not_checked_by_kombify), the data checkpoint with its retained size and, for logs, the redacted tail.

homelab api services list

List canonical measured service runtime state.

homelab api services logs

Read the latest bounded, redacted StackKits service log page. Returns the newest page that request_service_logs collected for this service and cursor: queued or running while the node is still collecting it, completed with redacted entries and next_cursor, or empty when no page was requested yet. Reading never contacts the node.

homelab api services metrics

Read measured resource metrics for an owned service. Uses the existing Guard telemetry query backend and fixes the tenant, canonical server and container selectors from authorized service inventory. An empty vector means no resource metric was measured.

homelab api services prepare-application-adoption

Plan Stack it for one exact unmanaged container, or assess Home Assistant in place. Mode stack_it plans the rebuild of any unmanaged single container as an own application (recreated as a new container; the original is stopped and kept). Mode adopt_in_place assesses Home Assistant Container in place. Retains the source-bound assessment in the existing durable job store. Requires a connected Guard and the exact capable published CLI release. This read-only operation does not establish Stacked membership.

homelab api services read-application-adoption-plan

Read the retained application assessment and durable progress.

homelab api services read-application-connector

Read node-owned connector status and current published transport admission. Returns a secret-free projection. An unavailable supporting catalog remains nondispatchable SourcePreview; stale evidence on a supporting pin requires current read-only verification. Dispatchability additionally requires current canonical host-key, node and lease authority.

homelab api services release-application-lifecycle

Release an adopted lifecycle binding without deleting or stopping its runtime.

homelab api services request-logs

Request a fresh bounded, redacted StackKits service log page. Asks the service’s agent for its latest log lines, bound to a fresh inventory revision of the service’s server. The node collects one bounded page into a durable read job; read the page with GET on the same path (get_service_logs) or follow job_id with get_job. It changes nothing and stays open on a frozen service. The service must advertise logs in allowed_actions. Exact replays under the same Idempotency-Key converge on the same job and a different body under the same key is 409; the raw Idempotency-Key is never persisted.

homelab api services resolve-stacked-original

Restore or remove the original container a Stack it kept. Mode restore_original (within the 7-day retention) removes the rebuilt own application, keeping its volume, and starts the original again. Mode release_original removes the stopped original; its data stays. Both require Owner approval.

homelab api services run-action

Run a governed StackKits service action. Derives stack, server, agent, kit and service authority from fresh canonical inventory. Every agent-executed mutation (start, stop, restart, update, backup, adopted applications included) runs as one governed RIL action card, its only write path: the card is derived from the service, its server and worker (an adopted application by its exact container, update with the pinned release, backup with the stack’s backup contract), its one Gateway Decision is answered by the acting agent’s equipment (no per-call approval flag), and the executor-bound primitive (start-service, stop-service, restart-service, update-service or run-backup) runs through the same lease, one-use claim, node proof, dispatcher and evidence as /v1/ril/action-cards. The response names the card in action_card_id and its execution in job_id; read it back with get_action_card for its status and evidence. freeze and unfreeze set the owner guardrail in the control plane without reaching the node. This operation only changes a service: a log page is requested with POST /api/v1/registry/services/&#123;serviceId&#125;/logs and read with GET on the same path. Exact replays converge on the same card receipt and a different body under the same key is 409; the raw Idempotency-Key is never persisted. A start or restart is followed by StackKits verify before measured state changes. Agent-executed actions refuse with 409 maintenance_active while the server is being rebooted or updated, a kit whose backups are managed refuses backup with 403 managed_backup_custody, and a locked service, application group or (for update) stack refuses on both entries.

homelab api services setup-application-connector

Ensure or revoke one declared owned Home Assistant connector on its node. Requires fresh backend ownership, positive operate authority, exact current inventory and Owner approval. Transports only closed correlation metadata through Guard to the published pinned CLI, whose local signedApply and Owner setup authority remain mandatory. Stores pre-send durable intent; unknown acknowledgement only reconciles the original operation read-only. Current v0.51.8 lacks the supporting catalog and returns nondispatchable SourcePreview. Credentials stay in node custody.
Requires confirmation: This operation issues or revokes the reviewed node-owned Home Assistant connector credential for this exact service. Pass --yes or answer the prompt; a non-interactive run without --yes stops before any request with exit code 9.

homelab api services start-own-application-operation

Read, review or back up an own application adopted with Stack it. Queues one StackKits own-application step for an application StackKits runs as an own application and Stack it adopted: status or logs (reads), backup (Owner approved, a node snapshot holding every own application volume), or the dry run of a mutation: review (start, stop, restart or rollback), update_review (a newer version tag of its own image, optionally allow_major), checkpoint_rollback_review or checkpoint_discard_review (the data checkpoint of a tag update). A dry run changes nothing and returns the review digest the execution binds.

homelab api services verify-application-connector

Refresh the current node-owned connector through a distinct read-only job. Retains the original signed setup operation and exact receipt, requires current published catalog and positive backend node/resource authority, and never reissues setup. Ordinary authenticated inventory reconciliation uses the same consumer for stale projections. Current v0.51.8 remains nondispatchable SourcePreview.