dibbla
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDibbla CLI
Dibbla CLI
The CLI scaffolds projects and manages applications, databases, secrets, and workflows on the Dibbla platform. Deployed apps are available at .
dibblahttps://<alias>.dibbla.comThe CLI 可生成项目脚手架,并在Dibbla平台上管理应用、数据库、密钥和工作流。部署完成的应用可通过 访问。
dibblahttps://<alias>.dibbla.comCommands at a glance
常用命令概览
| Area | Commands |
|---|---|
| Feedback | |
| Deploy | |
| Apps | |
| Db | |
| Secrets | |
| Workflows | |
| Nodes | |
| Edges | |
| Inputs | |
| Tools | |
| Revisions | |
| Functions | |
| 功能领域 | 命令 |
|---|---|
| 反馈 | |
| 部署 | |
| 应用管理 | |
| 数据库管理 | |
| 密钥管理 | |
| 工作流管理 | |
| 节点管理 | |
| 边管理 | |
| 输入管理 | |
| 工具管理 | |
| 版本管理 | |
| 函数管理 | |
Agent guidelines
Agent 使用指南
Interactive prompts: The following commands prompt for confirmation and will block if run non-interactively. Always pass (or ) when running these as an agent:
--yes-ydibbla apps delete <alias> --yesdibbla db delete <name> --yesdibbla secrets delete <name> --yesdibbla workflows delete <name> --yesdibbla nodes remove <wf> <id> --yesdibbla feedback delete <id> --yes
Deploying an app for the first time:
- Check if the app already exists:
dibbla apps list - If it does not exist, deploy with all required environment variables included in the deploy command — there is no app to attach them to yet:
bash
dibbla deploy . --alias my-app -e DATABASE_URL=postgres://... -e API_KEY=secret -e NODE_ENV=production - If it already exists, use for a zero-downtime rolling update:
--updateTo change env vars on an existing app, usebashdibbla deploy . --alias my-app --updateinstead:apps updatebashdibbla apps update my-app -e NEW_VAR=value
Key rules:
- causes downtime (tears down and redeploys). Prefer
--forcefor existing apps.--update - and
--forceare mutually exclusive.--update - Environment variables set via or
deploy -epersist across updates — you only need to pass them once.apps update -e - Use /
--quieton-q,db list,db deletefor machine-readable output in scripts.db connect - scopes the database and its auto-created
db create --deployment <alias>secret to a specific deployment.DATABASE_URL - prints a psql-compatible connection string via the Dibbla database proxy. Use
db connectfor scripting:-q.psql $(dibbla db connect mydb -q)
Pre-deploy guardrails: Before calling , you MUST complete the pre-deploy checklist and present findings to the user. Always wait for explicit user confirmation before deploying or fixing issues — never deploy autonomously. See guardrails.md for the full checklist.
dibbla deploy交互式提示: 以下命令会触发确认提示,如果在非交互式场景下运行会阻塞。作为Agent运行这些命令时,请始终传入 (或 )参数:
--yes-ydibbla apps delete <alias> --yesdibbla db delete <name> --yesdibbla secrets delete <name> --yesdibbla workflows delete <name> --yesdibbla nodes remove <wf> <id> --yesdibbla feedback delete <id> --yes
首次部署应用:
- 检查应用是否已存在:
dibbla apps list - 如果应用不存在,部署时请携带所有必填的环境变量——此时还没有可绑定环境变量的应用:
bash
dibbla deploy . --alias my-app -e DATABASE_URL=postgres://... -e API_KEY=secret -e NODE_ENV=production - 如果应用已存在,使用 参数执行零停机滚动更新:
--update如需修改已有应用的环境变量,请改用bashdibbla deploy . --alias my-app --update命令:apps updatebashdibbla apps update my-app -e NEW_VAR=value
核心规则:
- 参数会导致服务中断(销毁现有实例后重新部署)。对于已有应用,优先使用
--force参数。--update - 和
--force参数互斥,不可同时使用。--update - 通过 或
deploy -e设置的环境变量会在后续更新中持久保留——只需设置一次即可。apps update -e - 在 、
db list、db delete命令中使用db connect/--quiet参数可输出适合脚本处理的机器可读格式。-q - 可将数据库及其自动生成的
db create --deployment <alias>密钥绑定到指定部署实例。DATABASE_URL - 会通过Dibbla数据库代理输出兼容psql的连接字符串。脚本场景下可使用
db connect参数:-q。psql $(dibbla db connect mydb -q)
部署前防护规则: 调用 之前,你必须完成部署前检查清单并将结果告知用户。部署或修复问题前请始终等待用户明确确认——绝对不要自主执行部署操作。完整检查清单请参考 guardrails.md。
dibbla deployAdditional resources
更多资源
- Full command and flag reference: see reference.md for usage, arguments, and all flags.
- Usage examples: see examples.md for copy-paste examples and scripting patterns.
- Pre-deploy guardrails: see guardrails.md for the mandatory pre-deploy checklist.
When suggesting or generating commands, use the reference for exact syntax and the examples for typical workflows.
dibbla- 完整命令与参数参考: 查看 reference.md 了解用法、参数和所有可选标志。
- 使用示例: 查看 examples.md 了解可直接复用的示例和脚本编写模式。
- 部署前防护规则: 查看 guardrails.md 了解强制要求的部署前检查清单。
建议或生成 命令时,请参考参考文档获取准确语法,参考示例文档了解典型工作流。
dibbla