From 116abf3bec700aa03b9b6b8c2a12bc458e959575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 7 Feb 2026 17:23:10 +0100 Subject: [PATCH] CLAUDE.md: document homelab-deploy CLI for prod hosts Add instructions for deploying to prod hosts using the CLI directly, since the MCP server only handles test-tier deployments. Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 1084e84..ccf67cc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -266,6 +266,21 @@ deploy(role="vault", action="switch") **Note:** Only test-tier hosts with `homelab.deploy.enable = true` and the listener service running will respond to deployments. +**Deploying to Prod Hosts:** + +The MCP server only deploys to test-tier hosts. For prod hosts, use the CLI directly: + +```bash +nix develop -c homelab-deploy -- deploy \ + --nats-url nats://nats1.home.2rjus.net:4222 \ + --nkey-file ~/.config/homelab-deploy/admin-deployer.nkey \ + --branch \ + --action switch \ + deploy.prod. +``` + +Subject format: `deploy..` (e.g., `deploy.prod.monitoring01`, `deploy.test.testvm01`) + **Verifying Deployments:** After deploying, use the `nixos_flake_info` metric from nixos-exporter to verify the host is running the expected revision: