The Flow CLI provides a variety of commands to assist with the development of your dApp.
The most commonly used commands are :
-
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.
-
flow generate: This command is used to automatically generate boilerplate code for contracts, transactions, and scripts.
-
flow blocks get latest: This command is used to get the latest block data.
-
flow status: This command is used to get the network status of a specified Flow Access Node.
-
flow emulator: This command is used to start the Flow emulator, a simplified version of the Flow network that runs locally.
-
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.