tcb fn detail
Show details of a cloud function.
Prerequisites
tcb loginhas been completed and an environment is specified.- The function name is known. Use
tcb fn listto list functions.
Usage
tcb fn detail [options] <name>
Flags
| Flag | Required | Description | Default |
|---|---|---|---|
<name> | Yes | Function name | — |
--code-secret <codeSecret> | No | CodeSecret for a code-encrypted function | — |
--json | No | Output in JSON format | — |
-e, --env-id <envId> | No | Environment ID | Current default environment |
Examples
# Show details of the hello function
tcb fn detail hello
# Show details of a code-encrypted function
tcb fn detail hello --code-secret <codeSecret>
# Output JSON
tcb fn detail hello --json
Response
The default output covers the runtime, memory, timeout, environment variables, triggers, and versions.
--json prints the full response body.
Related commands
tcb fn list: list functions in the environmenttcb fn config-route: show or change version traffic