Frequently Asked Questions
Basic Usage
Unable to log in, CLI tool not responding
Please check whether your terminal can access the network.
Cloud Function
Common Causes of Function Deployment Failures
- The dependency in
package.jsondoes not exist.
AI CLI Related
What is CLI? Why is it important?
CLI (Command-Line Interface) refers to a method of interacting with computers through text commands. Compared to Graphical User Interfaces (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 Gains: Supports batch processing, remote operations, and automated workflows
What is the price of CloudBase AI CLI?
CloudBase AI CLI is completely free. New users can receive a generous free trial quota:
Cloud Development Environment:
- Free tier for basic services such as Cloud Function invocations and database storage space
- For detailed pricing, please refer to the Tencent Cloud Development official pricing page.
AI Model Experience:
- The new environment comes with 1 million tokens, supporting quick access to mainstream models like DeepSeek and Kimi K2
- Supports user-defined configuration of models and API Key
- Choose different models on demand to flexibly control costs
Paid Services:
- Exceeding the free quota will be billed based on actual usage
- Supports multiple payment methods with transparent pricing
How CloudBase AI CLI works.
CloudBase AI CLI is a unified integrated tool, not a standalone AI programming tool. It integrates multiple AI programming CLI tools like 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 dialogue and non-interactive script modes. The CLI integrates with Tencent Cloud Development 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 in the WeChat Developer Tools, enabling integrated development, debugging, and deployment of Mini Programs
- VS Code Terminal: Used in the VS Code integrated terminal, seamlessly integrating with existing development workflows.
- GitHub Actions: Automatically executes in CI/CD pipelines to automate code generation and deployment
- Any Terminal Environment: Can be run anywhere, including servers, containers, and local development environments
Why are AI programming tools now releasing CLI versions?
This represents a significant technological trend, with contributing factors including:
Shift from "Tools" to "Infrastructure":
- Traditional AI programming tools are merely standalone applications
- CLI turns AI programming capabilities into programmable infrastructure
- It 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 reduce the amount of coding
Adaptation to Modern Development Environments:
- Cloud-native development, containerized deployment
- Remote development, server environments
- Continuous Integration/Continuous Deployment (CI/CD)
- Propel the evolution of AI from "code generation" to "full-process collaboration"
What is the difference between CLI and GUI? Which one should I choose?
Both have their own strengths, and the best practice is to combine their use:
Advantages of GUI (Graphical User Interface):
- Intuitive interactive experience, suitable for exploration and debugging
- Rich visual feedback, facilitating the understanding of complex tasks
- Increase first-attempt success rate, suitable for learning and experimentation
CLI (Command Line Interface) Value:
- Programmable and automated, suitable for batch processing and CI/CD
- Not limited by environment, can run anywhere
- Structured output, facilitating integration into existing workflows
Best Practice: GUI for Solution Exploration, CLI for Process Solidification. Use GUI tools for exploration and debugging first. After identifying the optimal solution, use CLI to solidify and automate the process.
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 Curve):
# Install
curl https://static.cloudbase.net/cli/install/install.sh | bash
# Launch AI Assistant
tcb ai
# Describe Requirements Directly
tcb ai -- -p "help me create a user management system"
Detailed installation instructions please refer to 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 discussion group: Scan the WeChat QR code to join the official technical group
- 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 Documentation - AI feature usage instructions
Relationship Between CloudBase AI CLI and CloudBase AI Toolkit
CloudBase AI CLI integrates 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 using it while installing CloudBase AI CLI to access enhanced capabilities. CloudBase AI Toolkit will continue to be maintained, serving users who require lightweight integration.
For detailed introduction, please refer to CloudBase AI Toolkit documentation