You need to enable JavaScript to run this app.
Container Registry

Container Registry

Copy page
Download PDF
Getting started
Upload and download packages in AI format
Copy page
Download PDF
Upload and download packages in AI format
The artifact repository supports hosted artifacts, allowing users to create artifact repositories and upload and download artifacts. This article explains how to quickly use the artifact repository to upload and download AI format package.​
Prerequisites​
  • To allow IAM users to operate artifact repositories, ensure that relevant artifact repository policies and role authorizations have been completed. For detailed operating instructions, refer to Permission Management.​
Procedure​
Step 1: Create instance​
  1. Log in to the Artifact repository console.​
  1. In the left navigation bar, click Instances. Then, in the Instances area on the right page, click Create a Basic Edition Instance.​
  1. Configure the instance parameters.​
  • ​
    Parameter​
    Description​
    Instance Name​
    The name of the instance, which cannot be modified.​
    Repository Domain Name​
    The domain name for accessing the repository, which is automatically generated by the system and cannot be modified.​
    Billing method​
    The billing method of the instance. Currently, only Pay-as-you-go is supported and cannot be modified.​
    ​
  1. Click Confirm to navigate to the Confirm Order interface.​
  1. After confirming the configuration details, billing type, purchase quantity, and price in the order, if there are no issues, check the box for I have read and agreed to the "Service Terms for the Basic Edition of Artifact Repository".​
  1. Click confirm and wait for the system to complete instance creation.​
Step 2: Create a repository​
  1. In the left navigation bar, select Instances. In the Instances area on the right page, click to enter the artifact repository instance.​
  1. At the top of the left navigation bar, select the AI package format, and then in the menu bar, choose Repository Management and click on New Repository to enter the repository configuration page.​
  1. Configuration parameters of the artifact repository.​
tip​
For the meanings of different parameters when creating a repository, refer to Create AI repository.​
  1. Click Confirm.​
Step 3: Configure repository credentials​
  1. In the dropdown menu at the top of the left navigation bar, select the AI package format, and in the left navigation bar, select Identity and Access Management > settings.​
  1. Choose the Permanent Access Credential tab. Click Set Permanent Credential. You can now configure this artifact repository's permanent access credentials.​
Step 4: Upload a package​
  1. Log in to your local environment (MAC/Linux), and execute the following command to upload AI packages to the artifact repository.​
​
curl -u '{username}:{password}' -T {local_filename} https://{repo_url}/models/{namespace}/{model}/{version}/{filename}​
​
​
Parameter​
Description​
{username}:{password}​
The login information for the artifact repository, including username and password.log in e.g., user_demo@2100012345:cf83200******.​
{local_filename}​
The name of the package saved locally.​
https://{repo_url}/models/{namespace}/{model}/{version}/​
The URL address of the artifact repository and the package path. ​
  • {repo_url}: The URL address of the artifact repository. For details, please refer to Managing repositories.​
  • {namespace}: The namespace of the artifact repository, e.g., doc-demo.​
  • {model}: The name of the package in the artifact repository, e.g., ai-demo.​
  • {version}: the package version in the artifact repository, e.g., v1.0.​
  • Renaming files when uploading package files to the artifact repository, for example, demo.js.​
​
  1. Click the Enter key to complete the push packages to the repository.​
tip​
For more methods for uploading AI packages, please refer to Upload packages (command line).​
Step 5: Download package​
  1. Log in to the local environment (MAC/Linux), and use the following command to download AI packages from the artifact repository.​
​
curl -fL -u '{username}:{password}' https://{repo_url}/models/{namespace}/{model}/{version}/{filename} -o {local_filename}​
​
​
Parameter​
Description​
{username}:{password}​
The login information for the artifact repository, including username and password.log in e.g., user_demo@2100012345:cf83200******.​
https://{repo_url}/models/{namespace}/{model}/{version}/{filename}|​
The URL address of the artifact repository and the package path. ​
  • {repo_url}: The URL address of the artifact repository. For details, please refer to Managing repositories.​
  • {namespace}: The namespace of the artifact repository, e.g., doc-demo.​
  • {model}: The name of the package in the artifact repository, e.g., ai-demo.​
  • {version}: the package version in the artifact repository, e.g., v1.0.​
  • {filename}: The filename of the package in the artifact repository, e.g., demo.js.​
{local_filename}​
The name of the package saved locally.​
​
  1. Click the Enter key to pull packages.​
tip​
For more ways to download AI packages, refer to Download packages (command line).​
View results​
  1. Use a command to upload the package.​
  1. Once you enter the artifact repository, you can view the uploaded packages.​
​
Last updated: 2025.10.24 11:20:36