---
title: '`glab dependency-firewall configure`'
stage: AI Coding
group: Code Review
info: To determine the technical writer assigned to the Stage/Group associated with this page, see <https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments>
---

<!--
This documentation is auto generated by a script.
Please do not edit this file directly. Run `make gen-docs` instead.
-->

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/>.

```plaintext
glab dependency-firewall configure <package-manager> [flags]
```

## Examples

```console
# 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

```plaintext
      --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

```plaintext
  -h, --help   Show help for this command.
```
