Skip to content

CLI

Installation

dart pub global activate flutter_distributor

Commands

These commands are sorted in alphabetical order. The most commonly used are package, publish, and release.

Package

Will package your application into a platform specific format and put the result in a folder.

FlagValueRequired
--platformPlatform, e.g. androidtrue
--targetsComma separated list of maker namestrue
--skip-cleanSkip clean once before buildfalse

Example:

flutter_distributor package --platform=android --targets=aab,apk

Publish

FlagValueRequired
--pathPath, e.g. hello_world-1.0.0+1-android.apktrue
--targetsComma separated list of publisher namestrue

Example:

flutter_distributor publish --path hello_world-1.0.0+1-android.apk --targets fir,pgyer

Release

Will according to the configuration file (distribute_options.yaml), package your application into a specific format and publish it to the distribution platform.

FlagValueRequired
--nameName, e.g. devtrue
--skip-cleanSkip clean once before buildfalse

Example:

flutter_distributor release --name dev