API & Integrations
How to use the remove.bg CLI tool
How to use the remove.bg CLI tool

How to use the remove.bg CLI tool

Below you can find an explanation for downloading the Command Line tool and executing your first command.

If you're interested in a more in-depth step-by-step guide about how to process a folder of images, save to a different directory, add a background color, and more, you can dive into our blog post.

Let's get started:

The first step is to download the latest stable release for your platform of choice.

Extract the archive file to your destination folder of choice. If you would like to be able to use the CLI tool from anywhere on your computer, make sure to add the path to your > PATH environment variable.

Execute your first command

Windows

Open the Command Prompt by clicking on the Start Menu, typing cmd, and hitting ENTER.

Mac

Open the terminal by clicking the Launchpad icon, then searching for > terminal.

Linux

Open the terminal in accordance with your Linux distribution.

To execute a command using the CLI tool, you must follow the basic structure:

removebg [options] file...

If you didn’t update your PATH environment variable,  you need to give the full path of the executable:

Windows:

C:\removebg\removebg [options] file...

Mac/Linux:

/path/to/removebg/removebg [options] file...

For the [options] part, each option follows the same structure:

--option value

So, for example, if you didn't add REMOVE_BG_API_KEY to your environment variables, you must always enter the API key as an option:

removebg --api-key your_api_key_here

The file part of the command is where you tell the CLI tool which files you'd like to process.

For a more detailed explanation, read how to remove and replace the background of multiple images using remove.bg's CLI tool.

Was this article helpful? Yes No
Thanks for your feedback.
remove.bg - Remove Background from Image 100% Free! | Product Hunt
  • 詳しいこと

  • Magic Brush
  • 個人
  • 撮影者
  • マーケティング
  • 開発者
  • E コマース
  • メディア
  • 自動車ディーラー
  • 企業
  • Success stories
  • ツール & API

  • API ドキュメンテーション
  • 統合、ツール、アプリ
  • Photoshop拡張
  • Windows / Mac / Linux
  • Androidアプリ
  • デザインテンプレート
  • サポート

  • ヘルプ & よくある質問
  • お問い合わせ
  • 返戻
  • プラットフォームの状態
  • 当社

  • ブログ
  • アフィリエイトプログラム
  • 自動でデザインを作成
  • ビデオの背景削除
  • キャリア
  • 当社について
  • プレス

© remove.bg, a Canva Austria GmbH brand

  • 利用規約
  • 一般取引条件
  • プライバシーポリシー
  • Cookieポリシー
  • インプリント

フィードバックありがとうございました!

当社の向上に支援しませんか? (任意で)

  • 画像の使用許可を与えると、remove.bgの向上に役立つことができます。
  • 人工知能に教える。
  • 今後は類似画像のより精度いい仕上がることができます。
品質向上に支え、この画像の使用許可を与える場合にクリックする。
画像使用を拒否したいはこちら。 

あなたのアップロードした画像はremove.bgの向上するために利用します。

あなたの画像はremove.bgの向上に使用されません。