Help Center/ ServiceStage/ CLI Reference/ CLI Command Reference (V2)
Updated on 2026-09-14 GMT+08:00

CLI Command Reference (V2)

Git Authorization

API Name

Command

Description

Operation

Obtaining a Git Repository Authorization List

hcloud ServiceStage ListAuthorizations/v2

This API is used to obtain a Git repository authorization list.

Go debug

Obtaining an Authorization Redirection URL

hcloud ServiceStage ShowRedirectUrl/v2

This API is used to obtain an authorization redirection URL for a Git repository.

Go debug

Creating OAuth Authorization

hcloud ServiceStage CreateOAuth/v2

This API is used to create OAuth authorization for a Git repository.

Go debug

Creating Private Token Authorization

hcloud ServiceStage CreatePersonalAuth/v2

This API is used to create private token authorization for a Git repository.

Go debug

Creating Password Authorization

hcloud ServiceStage CreatePasswordAuth/v2

This API is used to create password authorization for a Git repository.

Go debug

Deleting Repository Authorization

hcloud ServiceStage DeleteAuthorize/v2

This API is used to delete repository authorization based on the name.

Go debug

Git Repository

API Name

Command

Description

Operation

Obtaining a Repository Namespace

hcloud ServiceStage ListNamespaces/v2

This API is used to obtain a repository namespace.

Go debug

Obtaining Repository Information Based on the Clone URL

hcloud ServiceStage ShowProjectDetail/v2

This API is used to obtain repository information based on the clone URL.

Go debug

Obtaining All Projects in a Namespace

hcloud ServiceStage ListProjects/v2

This API is used to obtain all projects in a namespace.

Go debug

Creating a Software Repository Project

hcloud ServiceStage CreateProject/v2

This API is used to create a software repository project.

Go debug

Obtaining a Project Branch

hcloud ServiceStage ListBranches/v2

This API is used to obtain a project branch in a specified project.

Go debug

Obtaining a Project Tag

hcloud ServiceStage ListTags/v2

This API is used to obtain a project tag.

Go debug

Creating a Project Tag

hcloud ServiceStage CreateTag/v2

This API is used to create a project tag in a project.

Go debug

Deleting a Project Tag

hcloud ServiceStage DeleteTag/v2

This API is used to delete a project tag in a project.

Go debug

Obtaining Project Commits

hcloud ServiceStage ListCommits/v2

This API is used to obtain the latest 10 project commits in a project.

Go debug

Obtaining a Project Hook

hcloud ServiceStage ListHooks/v2

This API is used to obtain a project hook

Go debug

Creating a Project Hook

hcloud ServiceStage CreateHook/v2

This API is used to create a project hook.

Go debug

Deleting a Project Hook

hcloud ServiceStage DeleteHook/v2

This API is used to delete a project hook.

Go debug

Git Repository File

API Name

Command

Description

Operation

Obtaining a Repository File Directory

hcloud ServiceStage ListTrees/v2

This API is used to obtain a repository file directory.

Go debug

Obtaining Repository File Contents

hcloud ServiceStage ShowContent/v2

This API is used to obtain repository file contents.

Go debug

Creating a Repository File

hcloud ServiceStage CreateFile/v2

This API is used to create a repository file.

Go debug

Upgrading Repository File Contents

hcloud ServiceStage UpdateFile/v2

This API is used to upgrade repository file contents.

Go debug

Deleting a Repository File

hcloud ServiceStage DeleteFile/v2

This API is used to delete a repository file.

Go debug

Meta

API Name

Command

Description

Operation

Obtaining All Supported Templates of Application Components

hcloud ServiceStage ListTemplates/v2

This API is used to obtain all supported built-in templates of application components.

Go debug

Obtaining All Supported Runtime Systems of Application Components

hcloud ServiceStage ListRuntimes/v2

This API is used to obtain all supported runtime systems of application components.

Go debug

Obtaining All Supported Flavors of Application Resources

hcloud ServiceStage ListFlavors/v2

This API is used to obtain all supported flavors of application resources.

Go debug

Environment

API Name

Command

Description

Operation

Obtaining All Environments

hcloud ServiceStage ListEnvironments/v2

This API is used to obtain all created environments.

Go debug

Creating an Environment

hcloud ServiceStage CreateEnvironment/v2

An environment is a collection of compute, storage, and network resources used for deploying and running an application. ServiceStage enables you to add multiple Elastic Load Balance (ELB), Relational Database Service (RDS), and Distributed Cache Service (DCS) instances to Cloud Container Engine (CCE) clusters in the same Virtual Private Cloud (VPC) to set up an environment, such as the development environment, test environment, production-like environment, and production environment. Networks in an environment can communicate with each other. You can manage resources and deploy services by environment, simplifying infrastructure O&M.Repository type This API is used to create an environment.

Go debug

Obtaining Environment Details Based on the Environment ID

hcloud ServiceStage ShowEnvironmentDetail/v2

This API is used to obtain environment details based on the environment ID.

Go debug

Modifying Environment Information

hcloud ServiceStage ChangeEnvironment/v2

This API is used to modify environment information based on the environment ID.

Go debug

Deleting an Environment Based on the Environment ID

hcloud ServiceStage DeleteEnvironment/v2

This API is used to delete an environment based on the environment ID.

Go debug

Modifying Environment Resources

hcloud ServiceStage ChangeResourceInEnvironment/v2

This API is used to modify environment resources.

Go debug

Application

API Name

Command

Description

Operation

Obtaining All Applications

hcloud ServiceStage ListApplications/v2

This API is used to obtain all created applications.

Go debug

Create an application.

hcloud ServiceStage CreateApplication/v2

An application is a service system with complete functions and consists of one or more components related to features. This API is used to create an application.

Go debug

Obtaining Application Details Based on the Application ID

hcloud ServiceStage ShowApplicationDetail/v2

This API is used to obtain application details based on the application ID.

Go debug

Modifying Application Information

hcloud ServiceStage ChangeApplication/v2

This API is used to modify application information based on the application ID.

Go debug

Deleting an Application Based on the Application ID

hcloud ServiceStage DeleteApplication/v2

This API is used to delete an application based on the application ID.

Go debug

Obtaining Application Configurations

hcloud ServiceStage ShowApplicationConfiguration/v2

This API is used to obtain application configurations.

Go debug

Modifying Application Configurations

hcloud ServiceStage ChangeApplicationConfiguration/v2

This API is used to modify application configurations.

Go debug

Deleting Application Configurations

hcloud ServiceStage DeleteApplicationConfiguration/v2

This API is used to delete application configurations.

Go debug

Component

API Name

Command

Description

Operation

Obtaining All Components of an Application

hcloud ServiceStage ListComponents/v2

This API is used to obtain all components of an application.

Go debug

Creating an Application Component

hcloud ServiceStage CreateComponent/v2

An application component implements a service feature of an application. It is in the form of code or software package and can be deployed independently. This API is used to create an application component.

Go debug

Obtaining Deployment Information of All Application Components.

hcloud ServiceStage ListComponentOverviews/v2

This API is used to obtain all components of an application.

Go debug

Obtaining Application Component Information Based on the Component ID

hcloud ServiceStage ShowComponentDetail/v2

This API is used to obtain application component information based on the component ID.

Go debug

Deleting an Application Component Based on the Component ID

hcloud ServiceStage DeleteComponent/v2

This API is used to delete an application component based on the component ID.

Go debug

Modifying Component Information Based on the Component ID

hcloud ServiceStage ChangeComponent/v2

This API is used to modify component information based on the component ID.

Go debug

Instance

API Name

Command

Description

Operation

Obtaining All Instances of a Component

hcloud ServiceStage ListInstances/v2

This API is used to obtain all instances of a component.

Go debug

Creating an Application Component Instance

hcloud ServiceStage CreateInstance/v2

This API is used to create an application component instance.

Go debug

Querying Instance Details Based on the Instance ID

hcloud ServiceStage ShowInstanceDetail/v2

This API is used to query instance details based on the instance ID.

Go debug

Modifying an Application Component Instance

hcloud ServiceStage ChangeInstance/v2

This API is used to modify an application component instance.

Go debug

Deleting an Application Component Instance

hcloud ServiceStage DeleteInstance/v2

This API is used to delete an application component instance.

Go debug

Querying the Operations Performed on a Component Instance

hcloud ServiceStage UpdateInstanceAction/v2

This API is used to query the operations performed on a component instance.

Go debug

Obtaining Component Instance Snapshots

hcloud ServiceStage ListInstanceSnapshots/v2

This API is used to obtain component instance snapshots.

Go debug

Deployment Jobs

API Name

Command

Description

Operation

Obtaining Job Details

hcloud ServiceStage ShowJobDetail/v2

This API is used to obtain job details.

Go debug