Usage: yo <COMMAND>
Commands:
init Initialize yo
config Open config
scan Scan flutter project directory
get Get flutter dependecies
build Run build runner for flutter projects
test Run flutter tests
clean Clean flutter project
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
Run the following command at the root of your project.
yo init
yo config
Check the config guide for more information.
yo scan
This scans your flutter project directory to map out all possible packages. In a normal project this means that only a
single package will exist. But if your package is a monorepo
then a list is maintained. It is recommend to run this
command once in a while to keep the mapping updated.
Get dependencies of all your packages.
yo get
You can also get the dependencies of a single package.
yo get <package_directory_name>
Here, package directory name is the name of the directory pubspec.yaml
resides in.
Run the tests in all your packages.
yo test
Run the tests in a specific package.
yo test <package_directory_name>
Clean all your packages.
yo clean
Clean a specific package.
yo clean <package_directory_name>
- Learn about build_runner.
Use this command to run the build_runner
.
yo build <package_directory_name>
You can see all the help info for yo
's subcommands.
yo help