Configure and observe projects
Configure projects
zenifra project info --project <project-id>
zenifra project url --project <project-id>
zenifra project stop --project <project-id>
zenifra project resume --project <project-id>
zenifra project delete --project <project-id> --yesEnvironment variables (values masked by default, including in --json):
zenifra project envs --project <project-id>
zenifra project env add --project <project-id> --name NODE_ENV --value production
zenifra project env update --project <project-id> --name NODE_ENV --value staging
zenifra project env remove --project <project-id> --name NODE_ENVUse --show-values on envs only when necessary and safe.
Exposure, instances, and auto-scaling (HTTP projects):
zenifra project exposure set --project <project-id> --exposure private
zenifra project instances set --project <project-id> --count 3
zenifra project autoscaling set --project <project-id> --min 2 --max 8 --cpu 70 --memory 80
zenifra project autoscaling disable --project <project-id>private removes the public route, the Zenifra subdomain, and custom domains; public restores them. With auto-scaling enabled, adjust the range through the autoscaling command: manual instance changes are blocked until you disable it.
Health check:
zenifra project healthcheck get --project <project-id>
zenifra project healthcheck set --project <project-id> --path /health
zenifra project healthcheck disable --project <project-id>Observe projects
zenifra projects --type http --page 1 --limit 15
zenifra project logs --project <project-id> --instance <instance-id>
zenifra project metrics --project <project-id> --instance <instance-id>
zenifra project metrics capabilities --project <project-id>
zenifra project network --project <project-id> --view summary
zenifra project healthcheck failures --project <project-id>
zenifra project autoscaling events --project <project-id> --direction scale_up
zenifra project billing usage --project <project-id> --from 2026-06-01T00:00:00Z --limit 20zenifra projectspaginates at 15 items per page; adjust with--pageand--limit.project metrics capabilitiesreports the access level and available metric groups before you fetch a snapshot; missing values appear asindisponivel.project network --viewacceptssummary,status-codes,routes,user-agents,request-events, andsource-ips.request-eventsandsource-ipsshow visitors' source IP and user agent and requireproject.network.visitors.readon the project; the other views requireproject.metrics.read.autoscaling eventsaccepts--direction scale_up|scale_down,--from, and--to;billing usageaccepts--fromand--toin ISO format.
Last updated on