Start Development Tools with the Flow CLI

How to start development tools using the Flow CLI

The Flow CLI integrates different development tools, which can now be easily started and managed from a single place.

Currently the CLI supports starting:

FCL Development Wallet

The FCL dev wallet is a mock Flow wallet that simulates the protocols used by FCL to interact with the Flow blockchain on behalf of simulated user accounts.

Be sure you have the emulator running before starting this command You can start it using the flow emulator command.

1
flow dev-wallet

⚠️ This project implements an FCL compatible interface, but should not be used as a reference for building a production grade wallet.

After starting dev-wallet, you can set your fcl config to use it like below:

1
import * as fcl from "@onflow/fcl"
2
3
fcl.config()
4
// Point App at Emulator
5
.put("accessNode.api", "http://localhost:8080")
6
// Point FCL at dev-wallet (default port)
7
.put("discovery.wallet", "http://localhost:8701/fcl/authn")

You can read more about setting up dev-wallet at FCL Dev Wallet Project

Flags

Port

  • Flag: --port
  • Valid inputs: Number
  • Default: 8701

Port on which the dev wallet server will listen on.

Emulator Host

  • Flag: --emulator-host
  • Valid inputs: a hostname
  • Default: http://localhost:8080

Specifies the host configuration for dev wallet

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.

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