---
schema_version: "1"
id: 50a9208849f4704fd2757f72dbd9839d561d686150eb4c5dcc011885ecc516ad
title: ネットワークプロキシでの Anypoint CLI の使用
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/anypoint-cli/latest/proxy.md
canonical_url: https://docs.mulesoft.com/jp/anypoint-cli/latest/proxy
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1dcd131fc9c79d38e05e928286929d7b4079fa396fbeb6c6907635b5dcf53a23
description: MuleSoft Documentation Site
release: 4.x
latest: true
---
# ネットワークプロキシでの Anypoint CLI の使用

Anypoint CLI をネットワークプロキシ経由で実行して、セキュリティレイヤーを追加できます。Anypoint CLI をプロキシサーバーで使用するには、次のセクションに示すように、​`HTTP_PROXY`​ または ​`HTTPS_PROXY`​ 環境変数を設定して、プロキシサーバーのホスト名と IP アドレスを指定します。

## [](#認証なしのプロキシサーバーを設定する)認証なしのプロキシサーバーを設定する

認証を必要としないプロキシサーバーを設定するには、次のコマンドを使用します。

- Linux、macOS、または Unix
    
    `$ export HTTP_PROXY=http://​_proxy-server_​:80`
    
    または
    
    `$ export HTTPS_PROXY=https://​_proxy-server_​:443`
- Windows
    
    `> set HTTP_PROXY=http://​_proxy-server_​:80`
    
    または
    
    `> set HTTPS_PROXY=https//​_proxy-server_​:443`

## [](#認証ありのプロキシサーバーを設定する)認証ありのプロキシサーバーを設定する

認証が必要なプロキシサーバーを設定するには、次のコマンドを使用します。

- Linux、macOS、または Unix
    
    `$ export HTTP_PROXY=http://​_username_​:_password_​@​_proxy-server_​:80`
    
    または
    
    `$ export HTTPS_PROXY=https://​_username_​:_password_​@​_proxy-server_​:443`
- Windows
    
    `> set HTTP_PROXY=http://​_username_​:_password_​@​_proxy-server_​:80`
    
    または
    
    `> set HTTPS_PROXY=https://​_username_​:_password_​@​_proxy-server_​:443`