Zeabur Variables Management
Known Issues
- •Use
--idnot--name- name lookup unreliable - •
${VAR}gets empty - shell expands before CLI receives - •
variable updatemay clear all vars - bug in CLI
Create Variables
bash
# ✅ Use service ID npx zeabur@latest variable create --id <service-id> \ --key "KEY1=value1" \ --key "KEY2=value2" \ -y -i=false
Variable References
bash
# ❌ FAILS - shell expands ${VAR} to empty
--key "REDIS_URL=${REDIS_URI_INTERNAL}"
# ✅ Set references in Dashboard instead
List Variables
bash
npx zeabur@latest variable list --id <service-id> -i=false
For ${VAR} references → Use Zeabur Dashboard, not CLI.