跳到主要内容

tcb fn detail

查看指定云函数的详细信息。

前置条件​

  • 已执行 tcb login,并已指定环境。
  • 已知函数名称。可通过 tcb fn list 获取。

语法​

tcb fn detail [options] <name>

参数​

参数必填说明默认值
<name>是函数名称—
--code-secret <codeSecret>否代码加密函数的 CodeSecret—
--json否以 JSON 格式输出—
-e, --env-id <envId>否环境 ID取当前默认环境

示例​

# 查看 hello 函数的详情
tcb fn detail hello

# 查看代码加密函数的详情
tcb fn detail hello --code-secret <codeSecret>

# 输出 JSON
tcb fn detail hello --json

输出​

默认输出函数的运行时、内存、超时、环境变量、触发器与版本信息。 --json 输出完整响应体。