Introduction to CLI Tools
Introduction to CLI Tools
Currently, there are two CLI tools. The following is an introduction to both tools:
tcb
-@cloudbase/cli
: The unified CLI tool for CloudBase, providing capabilities such as deployment, download, and execution of cloud-hosted function code, primarily for interacting with the cloud. Reference documentation: tcb cloudrunfunctiontcb-ff
-@cloudbase/functions-framework
: Cloud Functions Framework CLI tool. This framework provides function code execution capabilities for cloud function runtimes. Thetcb
command also runs function code by invokingtcb-ff
. Reference documentation: tcb-ff
The relationship between the two cli tools: tcb
uses tcb-ff
to run function code and additionally provides the ability to interact with the cloud for deploying function code. It is recommended to use tcb
.