This CLI provides various commands to help with Dart/Flutter development.
The helpis command provides an interface for the other commands. Running helpis will display usage information for the available commands.
The create command creates a new Dart project with a predefined structure. Some of the options include:
-nor--name: The name of the project. This option is mandatory.-Dor--description: The project's description.-aor--author: The name of the code owner.
For example, to create a project named MyProject, run:
helpis create -n MyProject -a user1 -D "My first Dart package."The createStore command creates a caching service using SharedPreferences. It has the following options:
-nor--name: The name of the project. Default isApp. Used in field naming/prefixing.-uor--unedited: Use this flag to use the app's name unedited.-por--part: Adds apart ofdirective.-tor--target: The path to generate the dart file. Default islib/src/service/cache.-ior--imports: Additional imports.-kor--keys: Cache keys and optional default values. Format iskey1-default1,key2,key3-default3.
For example, to create a StorageApp with keys isDarkMode and locale-en_us and an import of package:flutter/material.dart, run:
helpis createStore -i package:flutter/material.dart -k isDarkMode,locale-en_us -n StorageAppThe colorgen command creates aliases and theming features for FlexColorScheme colors from an XML
asset file. See the command description for details on the XML format.
For example, with an assets/colors.xml file, run:
helpis colorgen -t assets/colors.xmlThis will generate a lib/src/gen/theme/colors.helpis.dart file with the color aliases.