tcb fn list
List the cloud functions in the current environment.
Prerequisites
tcb loginhas been completed.- An environment is specified through
-e, the project configuration file, ortcb env use.
Usage
tcb fn list [options]
Flags
| Flag | Required | Description | Default |
|---|---|---|---|
-l, --limit <limit> | No | Number of functions returned per request | 20 |
-o, --offset <offset> | No | Number of functions to skip, used for pagination | 0 |
--json | No | Output in JSON format | — |
-e, --env-id <envId> | No | Environment ID | Current 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.
Related commands
tcb fn detail: show the configuration of one functiontcb fn code download: download function code