To install the latest version of Flow into your project run the following command in the terminal from your project directory: 'yarn add --dev flow-bin' for yarn or 'npm install --save-dev flow-bin' for npm.
Add flow to the "scripts" section of your package.json to be able to use this from the terminal: {
"scripts": {
"flow": "flow",
},
}.
To create a Flow configuration file that you will need to commit run following command: 'yarn run flow init' for yarn or 'npm run flow init' for npm.