正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

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.