Running from the command line

From Bisq Wiki
Jump to navigation Jump to search

You can run Bisq from the command line (also known as the terminal or console) to launch the application with specific temporary settings or for debugging purposes. This is done by navigating to the Bisq application directory and executing the program with specific arguments appended.

There are many options you can specify – see the source code for a full list.

Why Run from Command Line?

  • Temporary Settings: Apply a specific command-line option for a single session without permanently changing configuration files (e.g., connecting to a specific Bitcoin node just once).
  • Troubleshooting: Launching from the command line allows you to see log output directly in the terminal window, which can be helpful for diagnosing startup issues or other problems.
  • Multiple Instances: Using options like `--appName` allows running multiple, separate instances of Bisq simultaneously (e.g., for testing or separating identities before Bisq 2's built-in feature).

How to Run

The template below shows the typical commands for launching Bisq from the command line on different operating systems. Replace `[OPTIONS]` with any specific command-line options you wish to use for that session.

Windows

Open PowerShell (search the Start menu for PowerShell).

Then from PowerShell, run the following command to switch to your Bisq application directory:

cd  $home\AppData\Local\Bisq

Then run the following command to run Bisq:

start Bisq.exe [OPTIONS]

macOS

Open a terminal window by searching for Terminal with Spotlight, and then press Enter.

Then run the following command:

/Applications/Bisq.app/Contents/MacOS/Bisq [OPTIONS]

Linux

In a new terminal window, run the following command:

/opt/bisq/bin/Bisq [OPTIONS]

Alternative: Persistent Options

Using command-line arguments applies settings only for the session launched that way. If you want to set options persistently (so they apply every time you start Bisq normally), it's usually better to edit the `bisq.properties` file located in your Data directory.

See the Data directory page for more information on locating this file and its structure.