Manage Flow Configuration

How to configure the Flow CLI

Configuration should be managed by using config add and config remove commands. Using add command will also validate values that will be added to the configuration.

1
flow config add <account|contract|network|deployment>
2
flow config remove <account|contract|network|deployment>

Example Usage

1
flow config add account
2
3
Name: Admin
4
Address: f8d6e0586b0a20c7
5
✔ ECDSA_P256
6
✔ SHA3_256
7
Private key: e382a0e494...9285809356
8
Key index (Default: 0): 0

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.