View Service List
Using the list command allows you to view the list of services in the Cloud Run environment and their basic information.
Basic Usage
tcb cloudrun list
Usage Example:
# List All Cloud Run Services in the Current Environment
tcb cloudrun list
# View Service List for Specified Environment
tcb cloudrun list -e env-123456
# Filter by Service Name
tcb cloudrun list -e env-123456 --serviceName api
# Filter by Service Type for Function-Based Services
tcb cloudrun list -e env-123456 --serverType function
# Filter by Service Type for Container-Based Services
tcb cloudrun list -e env-123456 --serverType container
# Pagination Viewing, 20 Items Per Page, View Page 2
tcb cloudrun list -e env-123456 --pageSize 20 --pageNum 2
# Combine Filter Criteria
tcb cloudrun list -e env-123456 --serviceName user --serverType function --pageSize 10
Command Line Parameters
| Parameter | Description | Required |
|---|---|---|
-e, --env-id | Environment ID | No |
--pageSize | Number of services displayed per page, default is 10 | No |
--pageNum | Page number, default is 1 | No |
--serviceName | Service name filter (supports fuzzy matching) | No |
--serverType | Service type filter, optional values: function (function-based), container (container-based) | No |
-h, --help | Display command help information | No |
Precautions
- Service name filter supports fuzzy matching
- If no environment ID is specified, the current default environment will be used.
- Using pagination parameters allows for better viewing of large numbers of services.