iFlow CLI Setup Guide
After setup, you can operate CloudBase services directly from iFlow CLI’s AI chat.
Examples:
- "Create a users collection" - AI creates database collections automatically
- "Deploy this function" - AI uploads and configures cloud functions
- "Deploy the frontend to CDN" - AI uploads files and configures hosting
No need to switch to the Cloud console — you can do everything from the CLI with natural language.
Prerequisites
Before you start, make sure you have:
Node.js and a CloudBase environment ready
Node.js: Install Node.js v18.15.0 or later:
node --version
If you don’t have it installed, download it from the Node.js website.
CloudBase environment: See Create a CloudBase environment. New users can start for free.
Configure your AI tool to connect with CloudBase capabilities. Supports local and hosted connection. See connection modes.
Step 1: Install / Configure CloudBase
CLI command:
iflow mcp add-json --scope project cloudbase '{"command":"npx","args":["@cloudbase/cloudbase-mcp@latest"],"env":{"INTEGRATION_IDE":"iFlow"}}'或者将以下配置添加到 .iflow/settings.json:
Or manual configuration:
或者将以下配置添加到 .iflow/settings.json:
1{2 "mcpServers": {3 "cloudbase": {4 "command": "npx",5 "args": ["@cloudbase/cloudbase-mcp@latest"],6 "env": {7 "INTEGRATION_IDE": "iFlow"8 }9 }10 }11}Step 2: Chat with AI
Enter the following in your AI chat in order:
Install CloudBase Skills: run npx skills add tencentcloudbase/cloudbase-skills -yUse CloudBase Skills: 帮我按照 Spec 工作流开发一个 CloudBase 新功能FAQ
Q: MCP connection failed?
A: Check the MCP configuration format and network connectivity. You can use iflow mcp list to see installed MCP servers.
Q: Tool count shows 0?
A: See the FAQ.
Q: How do I manage MCP in iFlow CLI?
A: Use /mcp list to view installed MCP servers, and /mcp online to browse the MCP marketplace.
More: FAQ