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

Container Registry

Copy page
Download PDF
Downloading packages
Downloading packages (command line)
Copy page
Download PDF
Downloading packages (command line)
Downloading packages is one of the fundamental functions of an artifact repository, enabling you to download packages from the artifact repository to your local environment. This section explains how to download packages from the artifact repository to your local environment.​
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 artifact repository has been created. For details, please refer to Creating AI repositories.​
Download packages using Curl​
  1. Log in to your local environment (MAC/Linux) and execute the following command to download packages.​
​
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******.​
tip​
{password} supports both permanent and temporary access credentials for the artifact repository.​
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.​
​
Download 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}:​
The login information for the artifact repository, including username and password.log in 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 repository, which can be obtained from the repository details. For details, please refer to Managing repositories.​
​
  1. Execute the following command to download packages.​
​
from huggingface_hub import snapshot_download​
snapshot_download(​
repo_id="{namespace}/{model}",​
revision="{version}",​
repo_type="model",​
local_dir="{local_dir}",​
)​
​
​
Parameter​
Description​
{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.​
{local_dir}​
The path where the artifacts are saved locally, no need to specify a specific file.​
​
Download 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 download packages.​
​
./arutil get -D {local_filename} https://{repo_url}/models/{namespace}/{model}/{version}/{filename} -u {username} -p {password}​
​
​
Parameter​
Description​
{local_filename}​
The name of the package saved locally.​
{repo_url}​
The URL 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 version of the package in the artifact repository, e.g., v1.0.​
{username}​
The username for the artifact repository. For example, user_demo@2100012345.​
{password}​
The password for the artifact repository. For example, cf83200******​
tip​
{password} supports both permanent and temporary access credentials for the artifact repository.​
​
​
Last updated: 2025.10.24 11:20:38