Skip to content

sideninja/flow-cli

Repository files navigation

Flow

Flow CLI is a command line tool to interact with flow emulator and query data.

Usage

flow <command> <subcommand> [flags]

Core Commands

  account:     Query account data from Flow
  config:      Configure CLI properties (such as API of emulator)
  help:        Help about any command
  version:     Show version information

Examples

$ flow account get "01cf0e2f2f715450" # get all account information
$ flow account get "01cf0e2f2f715450" --filter address # get only account address
$ flow account get "01cf0e2f2f715450" --json # get all account information in JSON
$ flow config

Guidlines

Read guidlines for this CLI design: OUR GUIDELINES

Demo

asciicast

Instalation

Download a binary for your OS at the releases page.

Docker

You can use Docker to build and run the image. Be careful docker container can access the network of Flow Emulator. Create a shared network or use host if needed.

docker build -t flow .
docker run -it flow