f 0.1.3 f: ^0.1.3 copied to clipboard
A simple shortcut, command line interface (CLI) for Flutter to increase productivity and happiness.
f #
A simple shortcut, command line interface (CLI) for Flutter to increase productivity and happiness.
Installation #
Use this command to activate f CLI from your terminal.
pub global activate f
Create new project #
Use this f command to create a Flutter project:
f c myapp
It's similar to using command flutter create myapp
.
To create a Flutter project with some predefined dependencies, you can list the dependencies after your project name like this:
f c myapp path intl http provider
The above command will automatically create myapp
project in the myapp
directory, then automatically install all the required dependencies (in this example: path, intl, http, and provider).
Feel free to add as many dependencies as you want.
You can also pass other arguments, such as project name, the organization name, or to specify the programming language used for the native platform:
f c --p myapp --org dev.flutter --a kotlin --i swift myapp path intl http provider
Run Project #
To run a Flutter project, you can use this command:
f r
It's similar to using command flutter run
.
To run project as flutter run --profile
, use:
f rp
To run project as flutter run --release
, use:
f rr
You can combine -v
at the end of each command to show additional diagnostic informations.
f r -v
Build Project #
To build executable for a Flutter project, you can use this command:
f b apk
f b arr
f b appbundle
f b bundle
f b web
To build apk with split per abi, use this:
f bs apk
Other Commands #
The list of other f commands that you can use to increase productivity with Flutter.
Command | Description |
---|---|
f a -d DEVICE_ID |
Analyzes the project’s Dart source code. Alias of flutter analyze |
f as -o DIRECTORY |
Assemble and build flutter resources. Alias of flutter assemble |
f at -d DEVICE_ID |
Attach to a running application. Alias of flutter attach |
f b DIRECTORY |
Flutter build commands. Alias of flutter build |
f bs DIRECTORY |
Flutter build commands with split per abi. Alias of flutter build --split-per-abi |
f ch CHANNEL_NAME |
List or switch flutter channels. Alias of flutter channel |
f cl |
Clean a flutter project. Alias of flutter clean |
f dev -d DEVICE_ID |
List all connected devices. Alias of flutter devices |
f doc |
Show information about the installed tooling. Alias of flutter doctor |
f drv |
Runs Flutter Driver tests for the current project. Alias of flutter drive |
f e |
List, launch and create emulators. Alias of flutter emulators |
f f DIRECTORY|DART_FILE |
Formats Flutter source code. Alias of flutter format |
f i -d DEVICE_ID |
Install a Flutter app on an attached device. Alias of flutter install |
f l |
Show log output for running Flutter apps. Alias of flutter logs |
f t [DIRECTORY|DART_FILE] |
Runs tests in this package. Alias of flutter test |
f up |
Upgrade your copy of Flutter. Alias of flutter upgrade |
f down |
Downgrade Flutter to the last active version for the current channel. Alias of flutter downgrade |