Skip to main content

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

ParameterDescriptionRequired
-e, --env-idEnvironment IDNo
--pageSizeNumber of services displayed per page, default is 10No
--pageNumPage number, default is 1No
--serviceNameService name filter (supports fuzzy matching)No
--serverTypeService type filter, optional values: function (function-based), container (container-based)No
-h, --helpDisplay command help informationNo

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.