Skip to main content

tcb fn list

List the cloud functions in the current environment.

Prerequisites​

  • tcb login has been completed.
  • An environment is specified through -e, the project configuration file, or tcb env use.

Usage​

tcb fn list [options]

Flags​

FlagRequiredDescriptionDefault
-l, --limit <limit>NoNumber of functions returned per request20
-o, --offset <offset>NoNumber of functions to skip, used for pagination0
--jsonNoOutput in JSON format—
-e, --env-id <envId>NoEnvironment IDCurrent default environment

Examples​

# List the first 20 functions
tcb fn list

# List the first 10 functions
tcb fn list -l 10

# Skip the first 20 and return functions 21-40
tcb fn list -l 20 -o 20

# Output JSON for scripting
tcb fn list --json

Response​

By default the command prints a table of function names, runtimes, and modification times. --json prints the full response body for tools such as jq.

Pagination combines limit and offset. A result count lower than limit means the last page has been reached.