---
schema_version: "1"
id: e5721eeb6aec272f9f24e3546960029d008a274594cd835d050ebaa69b6a68dc
title: Using Anypoint CLI with a Network Proxy
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/anypoint-cli/latest/proxy.md
canonical_url: https://docs.mulesoft.com/anypoint-cli/latest/proxy
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e98a75eab1850a1b747f9571a38c52e2b7c8de812eece28975c6cfa978abe2fc
description: MuleSoft Documentation Site
release: 4.x
latest: true
---
---
product: Anypoint CLI
version: 4.x
is-latest-version: true
---

# Using Anypoint CLI with a Network Proxy

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Anypoint CLI can be run through a network proxy to add a layer of security. To use the Anypoint CLI
with a proxy server, configure the `HTTP_PROXY` or `HTTPS_PROXY` environment variables with the
hostname or IP addresses of your proxy servers as shown in the following sections. Use the
`ANYPOINT_CERTIFICATE` variable to configure your trusted certificates required by proxy.

## Configure a Proxy Server Without Authentication

To configure a proxy server that does not require authentication, use the following commands:

- Linux, macOS, or Unix

  `$ export HTTP_PROXY=http://_proxy-server_:80`

  or

  `$ export HTTPS_PROXY=https://_proxy-server_:443`

- Windows

  `> set HTTP_PROXY=http://_proxy-server_:80`

  or

  `> set HTTPS_PROXY=https//_proxy-server_:443`

## Configure a Proxy Server With Authentication

To configure a proxy server that requires authentication, use these commands:

- Linux, macOS, or Unix

  `$ export HTTP_PROXY=http://_username_:_password_@_proxy-server_:80`

  or

  `$ export HTTPS_PROXY=https://_username_:_password_@_proxy-server_:443`

- Windows

  `> set HTTP_PROXY=http://_username_:_password_@_proxy-server_:80`

  or

  `> set HTTPS_PROXY=https://_username_:_password_@_proxy-server_:443`
