--- title: '`glab dependency-firewall yarn`' stage: AI Clients group: Developer Clients info: To determine the technical writer assigned to the Stage/Group associated with this page, see --- Run Yarn through the GitLab Dependency Firewall. (BETA) ## Synopsis Run the yarn binary through the GitLab Dependency Firewall. The command checks each package download and upload against the policy for the current project, refuses blocked packages, and summarizes the results after the run. The command uses your package manager's registry or index configuration, and does not modify it. This command requires Yarn 3.2 or later, or Yarn Classic (1.x). It refuses Yarn 2.x through 3.1, because those versions cannot stop a `.yarnrc.yml` file from routing registry traffic around the firewall. During the run, Yarn ignores per-host `networkSettings` from every `.yarnrc.yml` file, so every request goes through the firewall. All arguments are forwarded to `yarn` verbatim. 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 . ```plaintext glab dependency-firewall yarn [flags] ``` ## Examples ```console # Install dependencies through the Dependency Firewall glab dependency-firewall yarn install # Add a package through the Dependency Firewall glab dependency-firewall yarn add left-pad ``` ## Environment variables ```plaintext HTTPS_PROXY: outbound proxy glab uses to reach package registries. Credentials in the URL are sent to the proxy. HTTP_PROXY: outbound proxy for plain-HTTP registries. When it's unset, glab uses HTTPS_PROXY. NO_PROXY: hosts glab reaches directly instead of through an outbound proxy. YARN_HTTPS_PROXY, YARN_PROXY, npm_config_https_proxy, npm_config_proxy: proxy settings for yarn. glab reads them first, so the outbound proxy can differ from HTTPS_PROXY and HTTP_PROXY. glab also reads the same settings from your user and global config files (~/.yarnrc, ~/.npmrc, $PREFIX/etc/yarnrc, $PREFIX/etc/npmrc, ~/.yarnrc.yml). glab doesn't read proxy settings from files inside the project. For Yarn 2 and later, glab reads only YARN_HTTPS_PROXY and ~/.yarnrc.yml. ``` ## Options inherited from parent commands ```plaintext -h, --help Show help for this command. ```