Skip to main content

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 cloudrunfunction
  • tcb-ff - @cloudbase/functions-framework: Cloud Functions Framework CLI tool. This framework provides function code execution capabilities for cloud function runtimes. The tcb command also runs function code by invoking tcb-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.