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 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 artifact repository has been created. For details, please refer to Creating NPM repositories.​
Procedure​
  1. Configure local credentials.​
  • For MAC Systems: Execute the following command to configure local access credentials. ​
  • ​
    npm config set //{repository_url}:_auth=$(echo -n '{username}:{password}' | base64)​
    ​
  • For Linux Systems: Execute the following command to configure local access credentials. ​
  • ​
    npm config set //{repository_url}:_auth=$(echo -n '{username}:{password}' | base64 -w 0)​
    ​
  • ​
    Parameter​
    Description​
    {repository_url}​
    The URL of the artifact repository, which can be viewed and obtained in the artifact repository details. For details, please refer to Managing repositories.​
    When configuring, it is not necessary to add the https:// prefix. The example is as follows:​
    ​
    npm config set //artifacts-beijing.volces.com/repository/npm-demo/:_auth...
    ​
    '{username}:{password}'​
    The login credentials for the artifact repository, e.g., user_demo@2100012345:cf83200******. ​
    tip​
    You can configure either permanent or temporary access credentials:​
    ​
  1. Execute the following command to push the package to the artifact repository.​
​
npm publish --registry={registry}​
​
​
Parameter​
Description​
{registry}​
The URL of the artifact repository, which can be viewed and obtained in the artifact repository details. For details, please refer to Managing repositories.​
​
View results​
Log in to the artifact repository. In the corresponding repository, you can view the list of packages that have been uploaded correctly.​
​
Last updated: 2025.10.24 11:20:38