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

Container Registry

Copy page
Download PDF
Uploading packages
Upload packages (command line)
Copy page
Download PDF
Upload packages (command line)
Uploading packages is one of the basic features of the artifact repository. You can upload completed packages to the artifact repository for others to download easily. This section explains how to use the command line to upload local AI packages to the artifact repository.​
Prerequisites​
  • Have registered a Volcano Engine root user and activated the artifact repository Service.​
  • A repository instance has been created. For details, refer to Creating basic edition instances.​
  • An AI-format artifact repository has been created. For details, please refer to Creating AI repositories.​
Upload packages using Curl​
  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. e.g., user_demo@2100012345:cf83200******.​
tip​
{password} supports both permanent and temporary access credentials for the artifact repository.​
{local_filename}​
The name of the package saved locally.​
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 uploaded to the artifact repository.​
​
  1. Click the Enter key to complete the push packages to the repository.​
Upload packages using Hugging Face​
  1. Log in to the Hugging Face environment and configure the access credentials and URL of the artifact repository.​
​
export HF_ENDPOINT=https://{username}:{password}@{repo_url}​
​
​
Parameter​
Description​
{username}:{password}​
The login information for the artifact repository, including username and password. For example, user_demo@2100012345:cf83200******.​
tip​
{password} supports both permanent and temporary access credentials for the artifact repository.​
{repo_url}​
The URL of the artifact repository, which can be obtained from the repository details. For details, please refer to Managing repositories.​
​
  1. Execute the following command to upload packages.​
​
from huggingface_hub import upload_folder​
upload_folder(​
folder_path="{local_dir}",​
repo_id="{namespace}/{model}",​
revision="{version}",​
repo_type="model",​
)​
​
​
Parameter​
Description​
{local_dir}​
The path where the artifacts are saved locally, no need to specify a specific file.​
{namespace}/{model}​
The namespace of the artifact repository and the package name, e.g., doc-demo/ai-demo.​
{version}​
The version of the package, e.g., v1.0.​
​
Upload packages using Arutil​
tip​
The Arutil tool currently supports Linux/Darwin. If you have any requirements, please contact the solution manager who is in touch with you.​
  1. Log in to your local environment and execute the following command to upload AI packages to the artifact repository.​
​
./arutil put https://{repo_url}/models/{namespace}/{model}/{version}/{filename} {local_filename} -u {username} -p {password}​
​
​
Parameter​
Description​
{local_filename}​
The name and path of the package locally.​
{repo_url}​
The URL of the artifact repository, which can be obtained from the repository details. 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 version of the package in the artifact repository, e.g., v1.0.​
{username}​
The username for the artifact repository.​
{password}​
The password for the artifact repository.​
​
View results​
Log in to the artifact repository. Under the corresponding repository, you can view the list of artifacts that have been successfully uploaded.​
​
Last updated: 2025.10.24 11:20:39