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
| Flag | Required | Description | Default |
|---|---|---|---|
--limit <limit> | No | Maximum number of results, from 1 to 100 | 20 |
--offset <offset> | No | Number of results to skip | 0 |
--region <region> | No | List environments in the given region | Current region |
--json | No | Output 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
--jsonreturnsmetaas{ limit, offset, hasMore }without a total count,hasMore: falsemeans the last pageStatusis 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) andap-singapore(Singapore) are generally available,ap-guangzhou(Guangzhou) is allowlist only,ap-beijing(Beijing) is not available
Related commands
- Rename an environment: change the display name
- Default environment: set it to omit
-e - Resource configuration: resources of a single environment