CloudBase CLI FAQ
Basic Usage
Unable to log in, CLI tool not responding
Please check if your terminal can access the network.
Cloud Function
Common Reasons for Function Deployment Failure
- Dependency not found in
package.json
AI CLI Related
What is CLI? Why is it important?
CLI (Command Line Interface) is a method of interacting with computers through text commands. Compared to Graphical User Interface (GUI), CLI offers a more direct and efficient interaction method.
Core Differences Between GUI and CLI:
- GUI: Based on graphical elements and mouse operations, suitable for intuitive interaction and visual operations.
- CLI: Based on text commands and keyboard input, suitable for automation, batch processing, and remote operations.
The importance of CLI lies in:
- Programmability: Enables AI programming capabilities to be invoked by scripts, CI/CD, and automated processes.
- Integrability: Can be embedded into existing development toolchains and workflows.
- Scalability: Not limited by GUI, can run in any environment.
- Efficiency Improvement: Supports batch processing, remote operations, and automated workflows.
What is the price of CloudBase AI CLI?
CloudBase AI CLI itself is completely free. New users can receive a generous free trial quota:
Cloud Development Environment:
- Free quota for basic services such as cloud function invocations and database storage space
- For detailed pricing, please refer to the official Tencent CloudBase pricing page.
AI Model Experience:
- New environment offers 1 million tokens for free, supporting quick experience with mainstream models like DeepSeek and Kimi K2.
- Supports user-defined configuration of models and API Key
- On-demand selection of different models for flexible cost control
Paid Services:
- Billed based on actual usage after exceeding the free quota
- Supports multiple payment methods with transparent pricing
How does CloudBase AI CLI work?
CloudBase AI CLI is a unified integration tool, not a standalone AI programming tool. It integrates multiple AI programming CLI tools—such as Claude Code, OpenAI Codex, aider, and Qwen Code—through a unified command-line interface. Developers can select different AI tools via tcb ai -a [tool name]
, supporting both interactive conversation and non-interactive script modes. The CLI integrates with the Tencent CloudBase platform, enabling one-click development and deployment of generated code to the cloud, transforming AI programming capabilities into programmable infrastructure.
Application scenarios include:
- Mini Program Developer Tools: Runs directly within WeChat Developer Tools, enabling integrated development, debugging, and deployment for Mini Programs
- VS Code Terminal: Used in the VS Code integrated terminal, seamlessly integrating with existing development workflows
- GitHub Actions: Automatically executed in CI/CD pipelines, automating code generation and deployment
- Any terminal environment: Supports running in servers, containers, local development environments, and more
Why are all AI programming tools now launching CLI versions?
This is an important technology trend, and the reasons include:
Shift from "Tools" to "Infrastructure":
- Traditional AI programming tools are merely standalone applications
- The CLI transforms AI programming capabilities into programmable infrastructure
- Can be invoked by scripts, automated processes, and CI/CD systems
Improve Development Efficiency:
- No need to switch between multiple GUI tools
- Supports batch processing and automation
- Can be integrated into existing development workflows
- Significantly reduces coding effort
Adaptation to Modern Development Environment:
- Cloud-native development, containerized deployment
- Remote development, server environments
- Continuous Integration/Continuous Deployment (CI/CD)
- Driving the evolution of AI from "code generation" to "full-process collaboration"
What are the differences between CLI and GUI? Which one should I choose?
Both have their own advantages, and the best practice is to use them in combination:
Advantages of GUI (Graphical User Interface):
- Intuitive interactive experience, suitable for exploration and debugging.
- Rich visual feedback, facilitating the understanding of complex tasks.
- Higher first-time success rate, suitable for learning and experimentation.
Value of CLI (Command-Line Interface):
- Programmability and automation, suitable for batch processing and CI/CD
- Not restricted by environments, can run anywhere.
- Structured output, facilitating integration into existing workflows
Best practices: Explore solutions with GUI, solidify processes with CLI. First use GUI tools to explore and debug, then use CLI to solidify and automate the processes after identifying the optimal solution.
Do I need to learn command-line to use CloudBase AI CLI?
CloudBase AI CLI is designed with a progressive learning curve:
Basic usage (minimal learning cost):
# Installation
curl https://static.cloudbase.net/cli/install/install.sh | bash
# Start AI Assistant
tcb ai
# Describe Requirements Directly
tcb ai -- -p "Help me create a user management system"
For detailed installation instructions, please refer to the CloudBase CLI Installation Documentation.
Advanced features (on-demand learning):
- Automation script writing
- CI/CD Integration
- Batch processing
- Custom Workflow
We provide detailed technical documentation and best practice guides, supporting a complete learning path from beginner to advanced proficiency.
How do I get help and customer support?
We provide multiple support channels:
- Official Documentation: https://docs.cloudbase.net/cli-v1/ai/introduce
- GitHub Repository: https://github.com/TencentCloudBase/CloudBase-AI-ToolKit
- Technical Exchange Group: Scan the QR code to join the official technical group on WeChat
- Ticket Support: https://tcb.cloud.tencent.com/help-center
Where can I download CloudBase AI CLI?
CloudBase AI CLI is a free tool and can be obtained through the following methods:
curl https://static.cloudbase.net/cli/install/install.sh | bash
For detailed installation methods and instructions, please refer to:
- CloudBase CLI Installation Documentation - Complete installation guide
- AI CLI Usage Documentation - AI feature usage guide
Relationship Between CloudBase AI CLI and CloudBase AI Toolkit
CloudBase AI CLI includes all the features of CloudBase AI Toolkit and provides a command-line interface (CLI) experience. If you have previously used CloudBase AI Toolkit, you can continue to use it while installing CloudBase AI CLI to gain access to more powerful features. CloudBase AI Toolkit will continue to be maintained, serving users who require lightweight integration.
For more details, please refer to the CloudBase AI Toolkit documentation