flow-cli
flow-cli copied to clipboard
Interactive flow cli walkthrough (beginner friendly)
Currently, there are many commands available in the docs site and it is overwhelming for beginners to get started with flow-cli. We want to create an interactive cli that enables beginners to flow development to be able to learn the available features and commands more easily.
We can have a command like flow prompts
when called will start the interactive session.
We can have the CLI ask a question (y/n) and if user inputs y, it will proceed with the step and carry out the action and ask the next prompt.
Example for emulator:
- start emulator, create a template contract (.cdc), create a template transaction file (.cdc), enable user to start a new random account, send the transaction, get transaction, and get events.
After each action, we can output the commands used to create the action, such that the user will have better understanding of how the commands work (for example after creating transaction we can output
> flow output transactions send ./tx.cdc "Hello"
We can expand this feature to testnet and mainnet too, but we probably just want to start with emulator for now.