← 返回
未分类 Key 中文

Creek

Deploy and manage applications on Creek via the Creek CLI. Covers init, deploy, status, projects, deployments, rollback, env vars, custom domains, and dev se...
使用 Creek CLI 在 Creek 部署和管理应用,涵盖 init、deploy、status、projects、deployments、rollback、环境变量、自定义域名及开发环境等。
linyiru linyiru 来源
未分类 clawhub v2.1.0 1 版本 99664.4 Key: 需要
★ 0
Stars
📥 297
下载
💾 0
安装
1
版本
#latest

概述

Creek CLI — Agent Skill

Creek deploys web apps to Cloudflare Workers with a single command. Auto-detects framework, determines render mode (SPA/SSR/Worker), provisions infrastructure.

Agent Rules

  1. Always use --json for structured output. Auto-enabled in non-TTY / CI.
  2. Follow breadcrumbs in JSON responses — they suggest the next command.
  3. Use --yes to skip confirmation prompts (auto-enabled in non-TTY).
  4. Check ok fieldtrue = success, false = error with error and message fields.

Command Reference

TaskCommand
---------------
Authenticatecreek login
Authenticate (CI)creek login --token
Check authcreek whoami --json
Init projectcreek init --json
Deploycreek deploy --json
Deploy directorycreek deploy ./dist --json
Deploy from GitHubcreek deploy https://github.com/user/repo --json
Deploy monorepo subdircreek deploy https://github.com/user/repo --path packages/app --json
Deploy democreek deploy --demo --json
Deploy templatecreek deploy --template vite-react
Skip buildcreek deploy --skip-build --json
Check statuscreek status --json
Check sandboxcreek status --json
Claim sandboxcreek claim --json
List projectscreek projects --json
List deploymentscreek deployments --json
List deployments (other)creek deployments --project --json
Rollbackcreek rollback --json
Rollback to specificcreek rollback --json
Set env varcreek env set --json
List env varscreek env ls --json
Show env valuescreek env ls --show --json
Remove env varcreek env rm --json
Add domaincreek domains add --json
List domainscreek domains ls --json
Activate domaincreek domains activate --json
Remove domaincreek domains rm --json
Dev servercreek dev

Deployment Modes

Authenticated (permanent)

Requires creek login. Deploys persist under the user's account.

creek deploy --json

Sandbox (60-min preview)

No auth required. Temporary preview with claimable URL.

creek deploy --json          # auto-sandbox when not logged in
creek claim <SANDBOX_ID>     # convert to permanent project

CI/CD

CREEK_TOKEN=ck_... creek deploy --yes --json

JSON Output Format

Every command returns structured JSON with breadcrumbs:

{
  "ok": true,
  "url": "https://my-app-team.bycreek.com",
  "project": "my-app",
  "breadcrumbs": [
    { "command": "creek status", "description": "Check deployment status" },
    { "command": "creek deployments --project my-app", "description": "View deployment history" }
  ]
}

On error:

{
  "ok": false,
  "error": "not_authenticated",
  "message": "Not authenticated. Run `creek login` first.",
  "breadcrumbs": [
    { "command": "creek login", "description": "Authenticate interactively" }
  ]
}

Workflow: First Deploy

creek login --json                # 1. Authenticate
creek init --json                 # 2. Create creek.toml (optional)
creek deploy --json               # 3. Deploy

Workflow: Update & Rollback

creek deploy --json               # Deploy new version
creek deployments --json          # View history
creek rollback --json             # Rollback to previous
creek rollback <ID> --json        # Rollback to specific deployment

Workflow: Custom Domain

creek domains add app.example.com --json     # Add domain
# User sets DNS: CNAME app.example.com → cname.creek.dev
creek domains activate app.example.com --json # Activate after DNS
creek domains ls --json                       # Verify status

creek.toml Reference

[project]
name = "my-app"              # Required. Lowercase alphanumeric + hyphens.
framework = "nextjs"         # Optional. Auto-detected from package.json.

[build]
command = "npm run build"    # Build command (default: npm run build)
output = "dist"              # Build output directory
worker = "worker/index.ts"   # Optional: custom Worker entry point

[resources]
d1 = true                   # Cloudflare D1 database   → env.DB
kv = true                   # Cloudflare KV namespace   → env.KV
r2 = true                   # Cloudflare R2 storage     → env.BUCKET
ai = true                   # Cloudflare Workers AI     → env.AI

Supported Frameworks

SPA: vite-react, vite-vue, vite-svelte, vite-solid, static HTML

SSR: nextjs, react-router, sveltekit, nuxt, solidstart, tanstack-start

Config Detection Order

  1. creek.toml — explicit Creek config
  2. wrangler.jsonc / wrangler.json / wrangler.toml — existing CF config
  3. package.json — framework auto-detection
  4. index.html — static site

Troubleshooting

ErrorFix
------------
"Not authenticated"creek login or set CREEK_TOKEN
"Invalid API key"creek login to re-authenticate
"No creek.toml found"creek init or cd to project root
"No project found"Deploy from a dir with package.json or index.html
"No supported project found in repo"Use --path for monorepos
Sandbox expiredRedeploy — sandboxes last 60 minutes
Domain stuck "pending"Set CNAME to cname.creek.dev, then creek domains activate
Build failsCheck [build] command in creek.toml

版本历史

共 1 个版本

  • v2.1.0 当前
    2026-05-07 11:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,081 📥 809,926
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,226 📥 267,804
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 676 📥 325,412