guara-cloud
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGuaraCloud Platform
GuaraCloud平台
GuaraCloud is a Platform-as-a-Service that deploys containerized applications from GitHub repositories. Billing is in BRL (Brazilian Real).
GuaraCloud是一款从GitHub仓库部署容器化应用的平台即服务(Platform-as-a-Service,PaaS)。计费货币为巴西雷亚尔(BRL)。
Core Concepts
核心概念
User — Authenticated via GitHub or Google OAuth. Has one subscription tier (hobby, pro, business, enterprise) that governs limits across all projects.
Project — Organizational unit containing one or more services. Each project is isolated.
Service — A deployable container within a project. Has its own subdomain, env vars, scaling config, and deployment history. Subdomain format: .
{service}-{project}.guaracloud.comDeployment — A build-and-deploy cycle triggered by git push, manual trigger, rollback, or config change. Tracks build status, image tag, commit SHA, and errors.
Domain — Each service gets an automatic subdomain. Users can add custom domains via CNAME verification.
Project Members — Role-based access: , , , .
owneradminmemberviewer用户 — 通过GitHub或Google OAuth进行身份验证。拥有一个订阅套餐层级(hobby、pro、business、enterprise),该层级管控所有项目的使用限制。
项目 — 包含一个或多个服务的组织单元。每个项目相互隔离。
服务 — 项目内可部署的容器。拥有独立的子域名、环境变量、扩缩容配置以及部署历史。子域名格式:。
{service}-{project}.guaracloud.com部署 — 由git推送、手动触发、回滚或配置变更触发的构建与部署周期。追踪构建状态、镜像标签、提交SHA以及错误信息。
域名 — 每个服务会自动获得一个子域名。用户可通过CNAME验证添加自定义域名。
项目成员 — 基于角色的访问权限:(所有者)、(管理员)、(成员)、(查看者)。
owneradminmemberviewerCLI Installation
CLI安装
bash
npm install -g @guaracloud/cliBinary names: or (interchangeable).
guaraguaracloudRequires Node.js >= 20.
bash
npm install -g @guaracloud/cli二进制名称: 或 (可互换使用)。
guaraguaracloud要求Node.js版本 >= 20。
Authentication
身份认证
bash
undefinedbash
undefinedBrowser-based OAuth (interactive)
基于浏览器的OAuth(交互式)
guara login
guara login
Direct API key (non-interactive / CI)
直接使用API密钥(非交互式/CI场景)
guara login --api-key <key>
guara login --api-key <key>
Verify
验证身份
guara whoami
API keys are stored in the OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service). Falls back to config file if keychain unavailable.
**Environment variable override:** Set `GUARA_API_KEY` to skip stored credentials.guara whoami
API密钥存储在操作系统密钥链中(macOS Keychain、Windows凭据管理器、Linux Secret Service)。若密钥链不可用,则回退到配置文件存储。
**环境变量覆盖:** 设置`GUARA_API_KEY`可跳过存储的凭据。Context Resolution
上下文解析
Commands that need a project/service resolve context in this order:
- /
--projectflags--service - /
GUARA_PROJECTenvironment variablesGUARA_SERVICE - file (walked upward from current directory)
.guara.json
Link a directory to a project:
bash
guara link需要项目/服务的命令按以下顺序解析上下文:
- /
--project标志--service - /
GUARA_PROJECT环境变量GUARA_SERVICE - 文件(从当前目录向上遍历查找)
.guara.json
将目录与项目关联:
bash
guara linkCreates .guara.json with { "project": "slug", "service": "slug" }
创建包含 { "project": "slug", "service": "slug" } 的 .guara.json 文件
undefinedundefinedGlobal Flags
全局标志
| Flag | Short | Description |
|---|---|---|
| Output as JSON | |
| | Suppress non-essential output |
| | Project slug override |
| | Service slug override |
| | Skip confirmation prompts |
| Override API key for this request | |
| Override API base URL |
| 标志 | 简写 | 描述 |
|---|---|---|
| 以JSON格式输出 | |
| | 抑制非必要输出 |
| | 覆盖项目slug |
| | 覆盖服务slug |
| | 跳过确认提示 |
| 覆盖本次请求的API密钥 | |
| 覆盖API基础URL |
Command Index
命令索引
| Command | Purpose | See skill |
|---|---|---|
| Authenticate | — |
| Clear credentials | — |
| Show current user | — |
| List projects | guara-deploy |
| Create project | guara-deploy |
| Project details | guara-deploy |
| List services | guara-deploy |
| Create service | guara-deploy |
| Service details | guara-deploy |
| Start stopped service | guara-deploy |
| Stop running service | guara-deploy |
| Rolling restart | guara-deploy |
| Delete service | guara-deploy |
| Trigger deployment | guara-deploy |
| Rollback deployment | guara-deploy |
| Deployment history | guara-deploy |
| Toggle autoscaling | guara-deploy |
| List custom domains | guara-deploy |
| Add custom domain | guara-deploy |
| Remove domain | guara-deploy |
| List env vars | guara-develop |
| Set env vars | guara-develop |
| Remove env vars | guara-develop |
| Link dir to project | guara-develop |
| Remove link | guara-develop |
| Shell into container | guara-develop |
| Forward local port | guara-develop |
| View/stream logs | guara-develop |
| Open service in browser | — |
| Platform status | — |
| Show CLI config | — |
| Get config value | — |
| Set config value | — |
| Reset to defaults | — |
For full flag reference, see references/commands.md.
| 命令 | 用途 | 参考技能 |
|---|---|---|
| 身份认证 | — |
| 清除凭据 | — |
| 显示当前用户 | — |
| 列出项目 | guara-deploy |
| 创建项目 | guara-deploy |
| 项目详情 | guara-deploy |
| 列出服务 | guara-deploy |
| 创建服务 | guara-deploy |
| 服务详情 | guara-deploy |
| 启动已停止的服务 | guara-deploy |
| 停止运行中的服务 | guara-deploy |
| 滚动重启 | guara-deploy |
| 删除服务 | guara-deploy |
| 触发部署 | guara-deploy |
| 回滚部署 | guara-deploy |
| 部署历史 | guara-deploy |
| 切换自动扩缩容 | guara-deploy |
| 列出自定义域名 | guara-deploy |
| 添加自定义域名 | guara-deploy |
| 删除域名 | guara-deploy |
| 列出环境变量 | guara-develop |
| 设置环境变量 | guara-develop |
| 删除环境变量 | guara-develop |
| 将目录与项目关联 | guara-develop |
| 解除关联 | guara-develop |
| 进入容器Shell | guara-develop |
| 转发本地端口 | guara-develop |
| 查看/流式传输日志 | guara-develop |
| 在浏览器中打开服务 | — |
| 平台状态 | — |
| 显示CLI配置 | — |
| 获取配置值 | — |
| 设置配置值 | — |
| 重置为默认值 | — |
如需完整的标志参考,请查看references/commands.md。
Tier Information
套餐层级信息
For tier limits, pricing, and quotas, see guaracloud.com/docs. The CLI will return descriptive errors when a tier limit is reached.
关于套餐层级限制、定价和配额,请查看guaracloud.com/docs。当达到套餐层级限制时,CLI会返回描述性错误信息。
Important Rules
重要规则
- Always use the CLI. Do not call the REST API directly.
guara - Check service status before suggesting actions. Run to see current state.
guara services info - Use for scripting. Parse structured output instead of scraping human-readable text.
--json - Link projects with so context resolution works automatically.
guara link
- 始终使用CLI。不要直接调用REST API。
guara - 在建议操作前检查服务状态。运行查看当前状态。
guara services info - 脚本场景使用。解析结构化输出,而非抓取人类可读文本。
--json - 使用关联项目,以便自动完成上下文解析。
guara link