Updated on 2026-09-18 GMT+08:00

CLI Command Reference

trashcan

API Name

Command

Description

Operation

Restore components in the recycle bin in batches

hcloud CodeArtsArtifact BatchRestoreRepo

Restore components in the recycle bin in batches

Go debug

Delete components in the recycle bin in batches

hcloud CodeArtsArtifact BatchDeleteTrashes

Delete components in the recycle bin in batches

Go debug

repository_management

API Name

Command

Description

Operation

Create a Maven repository

hcloud CodeArtsArtifact CreateMavenRepo

Create a Maven repository

Go debug

Edit a repository

hcloud CodeArtsArtifact ModifyRepository

Edit a repository

Go debug

View repository information

hcloud CodeArtsArtifact ShowRepositoryInfo

View repository information

Go debug

Create a Docker repository

hcloud CodeArtsArtifact CreateDockerRepositories

Create a Docker repository

Go debug

Move a repository to the recycle bin

hcloud CodeArtsArtifact DeleteRepository

Move a repository to the recycle bin

Go debug

Query the Maven repository list and account password of a tenant. Cross-tenant Maven repository list and account password are supported

hcloud CodeArtsArtifact ShowMavenInfo

Query the Maven repository list and account password of a tenant. Cross-tenant Maven repository list and account password are supported

Go debug

Create a non-Maven repository

hcloud CodeArtsArtifact CreateArtifactory

Create a non-Maven repository

Go debug

Edit non-Maven repository information

hcloud CodeArtsArtifact UpdateArtifactory

Edit non-Maven repository information

Go debug

repository_association

API Name

Command

Description

Operation

Query repositories associated with projects

hcloud CodeArtsArtifact ShowProjectList

Query repositories associated with projects

Go debug

Associate a project with a repository

hcloud CodeArtsArtifact CreateProjectRelatedRepository

Associate a project with a repository

Go debug

repository_capacity

API Name

Command

Description

Operation

Query repository usage

hcloud CodeArtsArtifact ShowStorage

Query repository usage

Go debug

Searching

API Name

Command

Description

Operation

Search for files using checksum

hcloud CodeArtsArtifact SearchByChecksum

Search for files using checksum

Go debug

Coordinated search

hcloud CodeArtsArtifact SearchArtifacts

Coordinated search

Go debug

Querying the Network Proxy List

hcloud CodeArtsArtifact ListNetProxy

Query the network proxy list.

Go debug

user_management

API Name

Command

Description

Operation

Reset a user password

hcloud CodeArtsArtifact ResetUserPassword

Reset a user password

Go debug

repository_details

API Name

Command

Description

Operation

Skip the number of artifacts in the repository when querying repository details

hcloud CodeArtsArtifact ListAllRepositories

Skip the number of artifacts in the repository when querying repository details

Go debug

Collect the number of artifacts in the repository when querying details about a repository

hcloud CodeArtsArtifact ShowRepository

Collect the number of artifacts in the repository when querying details about a repository

Go debug

Query storage capacity trend

hcloud CodeArtsArtifact ListArtifactoryStorageStatistic

Query storage capacity trend

Go debug

audit_logs

API Name

Command

Description

Operation

Query audit logs about a repository or file

hcloud CodeArtsArtifact ShowAudit

Query audit logs about a repository or file

Go debug

Following

API Name

Command

Description

Operation

Follow/unfollow components

hcloud CodeArtsArtifact CreateAttention

Follow/unfollow components

Go debug

Query the following list

hcloud CodeArtsArtifact ListAttentions

Query the following list

Go debug

file_management

API Name

Command

Description

Operation

Query the repository folder directory

hcloud CodeArtsArtifact ShowFileTree

Query the repository folder directory

Go debug

Query repository file details

hcloud CodeArtsArtifact ListArtifactoryComponent

Query repository file details

Go debug

Non-Maven file deletion

hcloud CodeArtsArtifact DeleteArtifactFile

Non-Maven file deletion

Go debug

Viewing Permissions

API Name

Command

Description

Operation

Querying Permissions of a User for a Project

hcloud CodeArtsArtifact ShowUserPrivileges

This API is used to query permissions of a user for a project.

Go debug

File Management (Release Repos)

API Name

Command

Description

Operation

Querying the File or Project List

hcloud CodeArtsArtifact ListFiles

Query the file or project list.

Go debug

Querying Details about a File

hcloud CodeArtsArtifact ShowFileDetail

Query details about a file.

Go debug

Querying Details about a File

hcloud CodeArtsArtifact ShowFileDetailByFullName

Query details about a file.

Go debug

Permissions Management

API Name

Command

Description

Operation

Querying User Permissions

hcloud CodeArtsArtifact ListUserPrivileges

This API is used to query the roles and permissions of a user in a project, such as creating and editing a repository, uploading, downloading, importing, and exporting packages.

Go debug

Repository Management

API Name

Command

Description

Operation

Querying Maven Repositories

hcloud CodeArtsArtifact ListMavenList

Query Maven repositories.

Go debug

Obtaining Proxy Repositories in a Virtual Repository

hcloud CodeArtsArtifact ListChildProxyRepositoriesList

Obtain proxy repositories in a virtual repository.

Go debug

Querying Project List

hcloud CodeArtsArtifact ShowProjectRelatedRepository

This API is used to quickly query the project list, including the association between repositories and projects, for repository management and collaboration.

Go debug

Version Management (Release Repos)

API Name

Command

Description

Operation

Querying the Latest Versions of All Files in a Project

hcloud CodeArtsArtifact ShowLatestVersionFilesCount

Query the latest versions of all files in a project.

Go debug

Querying the Latest Versions of All Files in a Project

hcloud CodeArtsArtifact ListLatestVersionFiles

Query the latest versions of all files in a project.

Go debug

Querying the Release Repo Version List

hcloud CodeArtsArtifact ShowVersionList

When there are many release repo versions, you can query the versions of the release repo by project ID on different pages. This API is used for fuzzy search by version name.

Go debug

Querying Versions of a Project

hcloud CodeArtsArtifact ShowProjectVersionsCount

When there are many versions in release repos, you can query the number of versions in release repos by project ID to manage and track the release of different versions. You can also use this API to filter versions by version name.

Go debug

file_query

API Name

Command

Description

Operation

Get a list of file version information under the project

hcloud CodeArtsArtifact ShowReleaseProjectFiles

Get a list of file version information under the project

Go debug

Get a list of file version information under the project

hcloud CodeArtsArtifact ShowProjectReleaseFiles

Get a list of file version information under the project

Go debug

User Management

API Name

Command

Description

Operation

Querying Users in a Project

hcloud CodeArtsArtifact ListProjectUsers

Query users in a project.

Go debug

Querying the Tenant IP Address Whitelist

hcloud CodeArtsArtifact ListDomainIpConfig

Query the tenant IP address whitelist.

Go debug

Querying Repository Permissions

hcloud CodeArtsArtifact ShowRepositoryRolesPrivilege

Query repository permissions.

Go debug

Querying the Password of a Tenant's Repository

hcloud CodeArtsArtifact ShowRepoUserInfo

Query the password of a tenant's repository.

Go debug

Updating Repository Permissions

hcloud CodeArtsArtifact UpdateRepoRolesPrivilege

Update repository permissions.

Go debug

Querying the User List of Self-Hosted Repos

hcloud CodeArtsArtifact ListMavenUser

Query the user list of self-hosted repos.

Go debug

Artifact Security

API Name

Command

Description

Operation

Querying the Artifact Security Scanning Tasks

hcloud CodeArtsArtifact ListSecGuardList

Query the artifact security scanning tasks.

Go debug

Central Repository

API Name

Command

Description

Operation

Check whether the central repository is enabled or not.

hcloud CodeArtsArtifact ShowOpenSourceEnabled

Check whether the central repository is enabled or not.

Go debug

Permission Management

API Name

Command

Description

Operation

Querying User Tickets

hcloud CodeArtsArtifact ShowUserTicket

Query user tickets.

Go debug

Permission Management (Release Repos)

API Name

Command

Description

Operation

Viewing Role Permissions of a Project

hcloud CodeArtsArtifact ListProjectRolePermissions

View role permissions of a project.

Go debug

Querying Permissions of a Multi-Role User

hcloud CodeArtsArtifact ShowMultiRolesUserPermissions

Query permissions of a multi-role user.

Go debug

Release Repos Settings

API Name

Command

Description

Operation

Querying Tenant Capacity Notification Settings

hcloud CodeArtsArtifact ListCapacityMessageSetting

Query tenant capacity notification settings.

Go debug

Repository Capacity (Release Repos)

API Name

Command

Description

Operation

Tenant Storage Capacity (Release Repos)

hcloud CodeArtsArtifact ShowDomainReleaseRepoStorage

Tenant storage capacity (Release Repos)

Go debug

Querying the Storage Capacity in a Project

hcloud CodeArtsArtifact ShowProjectStorageInfo

Query the storage capacity in a project.

Go debug