Start Emulator with the Flow CLI

How to start Flow emulator from the command line

The Flow CLI provides a command to start an emulator. The Flow Emulator is a lightweight tool that emulates the behaviour of the real Flow network.

1
flow emulator

⚠️ The emulator command expects configuration to be initialized. See flow init command.

Example Usage

1
> flow emulator
2
3
INFO[0000] ⚙️ Using service account 0xf8d6e0586b0a20c7 serviceAddress=f8d6e0586b0a20c7 ...
4
...

To learn more about using the Emulator, have a look at the README of the repository.

Flags

Emulator Flags

You can specify any emulator flags found here and they will be applied to the emulator service.

Configuration

  • Flag: --config-path
  • Short Flag: -f
  • Valid inputs: valid filename

Specify a filename for the configuration files, you can provide multiple configuration files by using -f flag multiple times.

Initialize

  • Flag: --init

⚠️ Deprecated: use flow init instead.

Initialize configuration during the command execution.