demox-site/demox/node-backend-cli
Claude Code and agent skill by demox-site/demox
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Deploy a Node.js frontend plus backend to Demox using only the CLI. Use when a user wants to migrate a Node site to Demox cloud functions, create a site with demox deploy, push functions, set env, and invoke — no console.
Install
npx vskill@latest install demox-site/demox/node-backend-cliSKILL.md
Demox Node 后端:全程 CLI
朋友的站点如果是静态前端 + Node 接口,只走 CLI,不要打开控制台,不要跑 deploy-function-api.mjs。
后端必须改成的样子
不是 Express app.listen。每个接口一个函数,导出:
- 入口文件名:
index.js/index.cjs/index.mjs - 密钥只从
env或process.env读,由demox env set --slug注入到当前函数 - 禁止
child_process/cluster/worker_threads - 当前运行时是 Node.js;不要用 Python/Go
- 页面里调用:
fetch('/api/{slug}')(站点域名会转到这个函数)
用哪条 CLI
用 npm 全局 CLI,需要 1.1.6 及以上(含 functions / env / alias):
命令顺序
必须先 push 出函数,再设环境变量。函数还不存在时 env set --slug 会失败。
更新代码再 push。要用新版本对外服务,显式改别名:
不要做的事
- 不要为用户站点去更新腾讯云
demox-*-api - 不要让后端继续监听端口
- 不要把密钥写进前端或函数源码
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/node-backend-cli/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/demox-site/demox/node-backend-cli)