Help us learn about your current experience with the documentation. Take the survey.
glab dependency-firewall configure
Configure Dependency Firewall registry URLs for a package manager.
Synopsis
Write a package manager’s resolve and deploy registry URLs to
.gitlab/df/config.json.
Supported package managers: npm.
The file is written relative to the current working directory, so run this command from the directory you run the package manager in.
Only the flags you pass are updated; existing values and unknown keys are preserved.
This feature is in beta and might not be ready for production use. It might be unstable and breaking changes can occur outside of major releases. For more information, see https://docs.gitlab.com/policy/development_stages_support/.
glab dependency-firewall configure <package-manager> [flags]Examples
# Set the resolve (read) and deploy (publish) registry URLs for npm
glab dependency-firewall configure npm --repo-resolve https://gitlab.com/api/v4/projects/42/packages/npm/ --repo-deploy https://gitlab.com/api/v4/projects/42/packages/npm/
# Update only the resolve URL; the deploy URL is preserved
glab dependency-firewall configure npm --repo-resolve https://gitlab.com/api/v4/projects/42/packages/npm/
Options
--repo-deploy string Full registry URL to deploy (publish) packages to.
--repo-resolve string Full registry URL to resolve (install) packages from.Options inherited from parent commands
-h, --help Show help for this command.