/zeabur:zeabur-variablesfrom zeabur
Creates, lists, updates, deletes, and troubleshoots Zeabur environment variables via CLI. Handles variable references and .env file loading with known workarounds.
Ships in zeabur. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Always use
npx zeabur@latestto invoke Zeabur CLI. Never usezeaburdirectly or any other installation method. Ifnpxis not available, install Node.js first.Do not guess CLI syntax. Only
create,update,delete,env, andlistare valid subcommands. Subcommands likesetoradddo not exist and will silently fail with no error output.
--id not --name — name lookup is unreliable${VAR} gets empty — shell expands before CLI receives; use single quotesvariable env replaces ALL variables — it overwrites the entire variable set with the .env file contents; existing variables not in the file will be removedCreates new variables. Errors if a key already exists — use update to change existing keys.
# Always use service ID — use the `zeabur-service-list` skill to get it
npx zeabur@latest variable create --id <service-id> \
-k "KEY1=value1" \
-k "KEY2=value2" \
-y -i=false
Updates only the specified keys. Does NOT clear other variables.
npx zeabur@latest variable update --id <service-id> \
-k "KEY1=new_value1" \
-k "KEY2=new_value2" \
-y -i=false
Deletes only the specified keys.
npx zeabur@latest variable delete --id <service-id> \
--delete-keys "KEY1" \
--delete-keys "KEY2" \
-y -i=false
npx zeabur@latest variable list --id <service-id> -i=false
Warning: This replaces ALL variables on the service with the contents of the .env file. Existing variables not in the file will be removed.
npx zeabur@latest variable env --id <service-id> -f .env
After running env, you must restart the service manually to apply changes.
Warning: The CLI
-kflag uses Cobra'sStringToStringVarparser which cannot reliably handle values containing${}, even with single quotes. The value may be truncated or emptied. See zeabur/cli#201.
# WRONG — shell expands ${VAR} to empty
npx zeabur@latest variable create --id <service-id> -k "REDIS_URL=${REDIS_URI_INTERNAL}" -y -i=false
# STILL UNRELIABLE — single quotes prevent shell expansion but Cobra's CSV parser may still mangle the value
npx zeabur@latest variable create --id <service-id> -k 'REDIS_URL=${REDIS_URI_INTERNAL}' -y -i=false
# RECOMMENDED — set variable references in Zeabur Dashboard
# Or use GraphQL API with updateEnvironmentVariable(data: Map!) mutation
For cross-service variable references like ${POSTGRES_CONNECTION_STRING} (Zeabur uses a flat namespace — all exposed variables from other services are merged directly, no service prefix needed), always use the Zeabur Dashboard until the CLI bug is fixed.
| Need | Command | Behavior |
|---|---|---|
| Add new vars | npx zeabur@latest variable create --id <service-id> -k "K=V" -y -i=false | Errors if key exists |
| Change existing vars | npx zeabur@latest variable update --id <service-id> -k "K=V" -y -i=false | Only updates specified keys |
| Remove specific vars | npx zeabur@latest variable delete --id <service-id> --delete-keys "K" -y -i=false | Only removes specified keys |
| Overwrite all vars from file | npx zeabur@latest variable env --id <service-id> -f .env | Replaces entire variable set |
| View vars | npx zeabur@latest variable list --id <service-id> -i=false | Read-only |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zeabur/agent-skills --plugin zeabur32 skills in this plugin
/zeabur-authUse when logging in, logging out, or checking Zeabur auth status. Use when user says "login", "log in", "登入", "logout", "log out", "登出", "auth status", "am I logged in", or "who am I"./zeabur-cluster-scaleUse when scaling a dedicated Kubernetes cluster (Linode LKE or AWS EKS) on Zeabur — listing node pools, changing node counts, or adding/removing node pools. Use when user says "scale my cluster", "add nodes", "remove nodes", "resize node pool", "加節點", "擴容", "縮容". Do NOT use for renting new servers (use zeabur-server-rent) or for single-VM dedicated servers (they have no node pools)./zeabur-databaseUse when deploying a database to Zeabur. Use when user needs MySQL, PostgreSQL, MongoDB, or Redis. Use when user says "I need a database", "add database", "deploy postgres", "set up MySQL", "add Redis", "add MongoDB", or "connect to database". Also use when user mentions data persistence issues like "data lost after restart", "data not saved", "data disappears", "need persistent storage for data", or "how to persist data". Also use when integrating a database with an existing service.Other plugins' skills for the same job