What are all the Flow CLI commands?

Daniela
Daniela
  • Updated

The Flow CLI provides a variety of commands to assist with the development of your dApp.

The most commonly used commands are : 

  1. flow setup: This command is used to start your new Flow project. It creates a basic folder structure and a flow.json configuration. You can also use the --scaffold flag to select from a list of available scaffolds for your project.
  2. flow generate: This command is used to automatically generate boilerplate code for contracts, transactions, and scripts.
  3. flow blocks get latest: This command is used to get the latest block data.
  4. flow status: This command is used to get the network status of a specified Flow Access Node.
  5. flow emulator: This command is used to start the Flow emulator, a simplified version of the Flow network that runs locally.
  6. flow dev: This command is used to deploy your contracts to the Flow emulator.

For a complete list of Flow CLI commands, you can refer to the official Flow CLI documentation.