Skip to main content

tcb env list

Lists the environments in the account, with region filtering and pagination.

Usage​

tcb env list [--limit <limit>] [--offset <offset>] [--region <region>]

Flags​

FlagRequiredDescriptionDefault
--limit <limit>NoMaximum number of results, from 1 to 10020
--offset <offset>NoNumber of results to skip0
--region <region>NoList environments in the given regionCurrent region
--jsonNoOutput in JSON format—

Example​

# 20 results per page by default
tcb env list

# 50 results per page, second page
tcb env list --limit 50 --offset 50

# Environments in Singapore
tcb env list --region ap-singapore

Output​

  • The line below the table shows the range on the current page, and the command for the next page when the page is full
  • --json returns meta as { limit, offset, hasMore } without a total count, hasMore: false means the last page
  • Status is the environment state. Resources such as functions, databases, and storage can only be used when the state is normal, a new environment may still be initializing
  • Regions: ap-shanghai (Shanghai) and ap-singapore (Singapore) are generally available, ap-guangzhou (Guangzhou) is allowlist only, ap-beijing (Beijing) is not available