cloudbase-cli

Manage Tencent CloudBase resources via tcb CLI commands for deployment and configuration.

Updated May 14, 2026
One-click install
npx skills add https://github.com/study-yang/Vieb-Coding-- --skill cloudbase-cli-study-yang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudbase-cli
Source: https://github.com/study-yang/Vieb-Coding--/tree/main/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F-%E5%BF%AB%E8%AE%B0/.codebuddy/skills/cloudbase-cli
Command: npx skills add https://github.com/study-yang/Vieb-Coding-- --skill cloudbase-cli-study-yang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing CloudBase resources (cloud functions, CloudRun services, databases, storage, hosting, domains) through the console is slow and hard to automate. This Skill lets you perform all of these operations deterministically from the terminal using the tcb CLI, making them scriptable, auditable, and suitable for CI/CD pipelines. ## Core Features & Use Cases - Resource Deployment: Deploy cloud functions, web apps (React/Vue/Next.js), CloudRun container services, and static hosting with framework auto-detection and canary traffic shifting. - Data & Storage Management: Execute MySQL SQL statements, run MongoDB-style NoSQL queries, manage backups/restores, and upload files to storage. - Access & Security Configuration: Configure CORS domains, bind custom domains with TLS certificates, create routing rules, and manage roles, policies, and resource permissions. - Use Case: In a CI/CD pipeline, authenticate with API keys, deploy a new CloudRun version at 0% traffic, shift 10% of traffic for canary testing, then promote to 100% after monitoring logs. ## Quick Start Ask the agent to log in to CloudBase with tcb, confirm the target environment ID, and deploy your cloud function or web app using the appropriate tcb command.

Frequently Asked Questions about cloudbase-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a cloud function with the tcb CLI?

Run tcb fn deploy <name> after configuring the function in cloudbaserc.json with name, handler, and runtime. Use tcb fn deploy --all to deploy every function listed in the config, then verify with tcb fn list and test with tcb fn invoke.

How to set up canary deployment for CloudRun services?

Deploy the new version with tcb cloudrun deploy --traffic so it starts at 0% traffic, then use tcb cloudrun traffic set --version-weights to shift traffic gradually (10%, 50%, 100%). Roll back instantly by setting the stable version weight back to 100.

Can I use tcb CLI in CI/CD pipelines without interactive login?

Yes, authenticate non-interactively with tcb login --apiKeyId <Id> --apiKey <Key>, or add --token for temporary credentials. Always pass --env-id and --yes or --force flags, since interactive prompts hang in non-interactive environments.

Why does my tcb db nosql execute command fail to parse?

The --command value must be a JSON array whose Command field is a JSON-encoded string with escaped quotes, not a raw object. Wrap the whole value in single quotes so the shell does not interpret $ characters in operators like $set.

When should I use the tcb CLI instead of the CloudBase SDK or MCP?

Use the CLI for terminal-based resource management, batch operations, and CI/CD scripting. Use the SDK skills for in-app integration (web or miniprogram code) and CloudBase MCP for IDE-integrated tool calls instead.