go-infra/cmd/prod/cmd_prod.go
Snider 5626d99a17 feat: add cmd/prod and cmd/monitor from go-devops
Production infrastructure and security monitoring commands now
live alongside the infra library they depend on.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-09 12:28:22 +00:00

35 lines
833 B
Go

package prod
import (
"forge.lthn.ai/core/cli/pkg/cli"
)
var (
infraFile string
)
// Cmd is the root prod command.
var Cmd = &cli.Command{
Use: "prod",
Short: "Production infrastructure management",
Long: `Manage the Host UK production infrastructure.
Commands:
status Show infrastructure health and connectivity
setup Phase 1: discover topology, create LB, configure DNS
dns Manage DNS records via CloudNS
lb Manage Hetzner load balancer
ssh SSH into a production host
Configuration is read from infra.yaml in the project root.`,
}
func init() {
Cmd.PersistentFlags().StringVar(&infraFile, "config", "", "Path to infra.yaml (auto-discovered if not set)")
Cmd.AddCommand(statusCmd)
Cmd.AddCommand(setupCmd)
Cmd.AddCommand(dnsCmd)
Cmd.AddCommand(lbCmd)
Cmd.AddCommand(sshCmd)
}