CLI Reference
English | 简体中文
fastforge [OPTIONS] <COMMAND>
Global options:
| Option | Description |
|---|---|
-h, --help |
Show help |
-V, --version |
Show the version |
--no-version-check |
Skip the update check that runs before every command (on by default) |
--version-check |
Re-enable the update check (overrides an earlier --no-version-check) |
Before running a command (other than upgrade and version-check, which run their own check), fastforge checks GitHub releases for a newer version via the /releases/latest redirect and prints an upgrade hint (or a "latest version" note) to stderr. The check times out after 5 seconds and never fails the command.
Top-level commands:
| Command | Description |
|---|---|
analyze |
Analyze app packages, or a directory of them |
build |
Build a project with Flutter Builder |
package |
Build and package a project |
publish |
Publish an existing artifact |
release |
Preserve compatibility with legacy releases |
store |
Manage aggregated store configuration and catalogs |
workflow |
Run local workflows |
appstore |
Operate App Store Connect |
appgallery |
Operate Huawei AppGallery Connect |
googleplay |
Operate Google Play Console |
upgrade |
Upgrade fastforge to the latest release |
version-check |
Check for a newer version |
analyze
fastforge analyze [OPTIONS] <PATH>...
| Option | Required | Description |
|---|---|---|
<PATH>... |
Yes | One or more .apk, .aab, .ipa, .dmg or .app paths, or directories to scan |
-o, --output <OUTPUT> |
No | Write the report to a file; otherwise write to stdout |
--format <FORMAT> |
No | json or html. Defaults to the format implied by --output, else json |
fastforge analyze dist/app.apk
fastforge analyze dist/app.ipa --output app-info.json
fastforge analyze dist --output report.html
See App Package Analysis for format dependencies and output details.
build
fastforge build [OPTIONS]
| Option | Description |
|---|---|
-p, --platform <PLATFORM> |
Target platform; inferred from the target and project when omitted |
-t, --target <TARGET> |
Build target |
--clean |
Clean before building |
--flutter-build-args <ARGS> |
Additional Flutter Builder arguments |
--build-target <PATH> |
Flutter entry point |
--build-flavor <FLAVOR> |
Build flavor |
--build-target-platform <PLATFORM> |
Target architecture |
--build-export-options-plist <PATH> |
iOS ExportOptions plist |
--build-export-method <METHOD> |
iOS export method |
--build-dart-define <KEY=VALUE> |
Compile-time variable; repeatable |
--build-obfuscate |
Enable obfuscation |
--build-split-debug-info <PATH> |
Debug-symbol output directory |
--build-tree-shake-icons |
Enable icon tree shaking |
--build-profile |
Use profile mode |
See Building for the current scope of the build command and builder status.
package
fastforge package [OPTIONS]
| Option | Description |
|---|---|
-p, --platform <PLATFORM> |
Target platform; inferred from the targets and project when omitted |
-t, --targets <TARGET,...> |
Comma-separated package targets (alias --target); required |
--channel <CHANNEL> |
Channel name used in the artifact name |
--artifact-name <TEMPLATE> |
Mustache artifact-name template |
--output <DIR> |
Directory the artifacts are written to (default: output of distribute_options.yaml, else dist/) |
--skip-clean |
Skip flutter clean before the build |
--skip-build |
Package an existing Flutter build output instead of building |
--flutter-build-args <ARG,...> |
Arguments passed to flutter build (verbose,obfuscate, key=value) |
--build-target <PATH> |
--target passed to flutter build |
--build-flavor <FLAVOR> |
--flavor passed to flutter build |
--build-target-platform <PLATFORM> |
--target-platform passed to flutter build |
--build-export-options-plist <PATH> |
--export-options-plist passed to flutter build |
--build-dart-define <KEY=VALUE> |
--dart-define passed to flutter build; repeatable |
--hook-pre <COMMAND> |
Shell command to run before packaging |
--hook-post <COMMAND> |
Shell command to run after packaging |
--notarize |
Notarize and staple macOS DMG, PKG, and ZIP artifacts |
distribute_options.yamlis deprecated. It is still read for backward compatibility, but it gets no new features. Use--outputand environment variables withpackage, and local workflows instead ofrelease.
When distribute_options.yaml is present, package reads it: artifacts go to its output directory (default dist/), and its variables are layered over the environment for the build, the packagers (for example INNO_SETUP_PATH) and the hooks. A value written exactly as ${NAME} or $NAME is read from the environment, and one that is unset or empty leaves the key to the environment, so PGYER_API_KEY: ${PGYER_API_KEY} works; release treats release- and job-level variables the same way. flutter clean runs at most once; non-Android platforms build once and reuse the output for every target. A target whose builder cannot run on the current OS is skipped with a warning.
See Packaging for current support.
See the packager overview for platform and format details.
publish
fastforge publish [OPTIONS]
| Option | Description |
|---|---|
--path <PATH> |
File or directory path; required |
-t, --targets <TARGET,...> |
Comma-separated publishing targets (alias --target); required |
--app-version <VERSION> |
App version passed to publishers |
--publish-arg <KEY=VALUE> |
Publisher argument; repeatable |
Provider-specific options are also accepted and forwarded to the matching publisher with their prefix stripped (--github-repo becomes repo for github): --appgallery-app-id, --firebase-app, --firebase-release-notes[-file], --firebase-testers[-file], --firebase-groups[-file], --firebase-hosting-project-id, --github-repo, --github-repo-owner, --github-repo-name, --github-release-title, --github-release-draft, --github-release-prerelease, --minio-endpoint, --minio-access-key, --minio-secret-key, --minio-region, --minio-bucket, --minio-savekey-prefix, --pgyer-*, --playstore-package-name, --playstore-track, --qiniu-bucket, --qiniu-bucket-domain, --qiniu-savekey-prefix, --vercel-org-id and --vercel-project-id. --firebase-app is required for the firebase target. Publishers read credentials from the environment plus the variables in distribute_options.yaml.
See the publisher overview for credentials and arguments for each target.
release
fastforge release [--name <NAME>] [--jobs <JOB,...>] [--skip-jobs <JOB,...>] [--skip-clean] [--dry-run]
Deprecated together with
distribute_options.yaml: kept for compatibility, no new features. Use local workflows.
Runs the releases defined in distribute_options.yaml: every release when --name is omitted, otherwise the named one. --jobs selects jobs and takes precedence over --skip-jobs. Each job packages its target and, when publish/publish_to is set, publishes the first artifact. Variables are merged as environment < global variables < release variables < job variables. flutter clean runs at most once per release. The run ends with RELEASE SUCCESSFUL in Ns or RELEASE FAILED in Ns. For new automation, prefer fastforge workflow.
store
fastforge store <COMMAND>
| Subcommand | Description |
|---|---|
list |
List stores and apps configured in .fastforge/config.yaml |
catalog pull |
Pull catalogs for all configured apps |
catalog push |
Push catalogs for all configured apps |
workflow
Run
fastforge workflow run [OPTIONS]
| Option | Description |
|---|---|
-f, --file <FILE> |
Select a workflow file |
-e, --event <EVENT> |
Simulate an event; defaults to workflow_dispatch |
-w, --workspace <WORKSPACE> |
Working directory; defaults to the current directory |
-i, --input <KEY=VALUE> |
Input; repeatable |
Without --file, workflows are discovered in .fastforge/workflows/, .minact/workflows/ and .github/workflows/ under the workspace; the command runs only when exactly one is found. See Local Workflows.
List
fastforge workflow list [OPTIONS]
| Option | Description |
|---|---|
-d, --dir <DIR> |
Search directory |
-v, --verbose |
Show details |
Validate
fastforge workflow validate <FILE>
Checks the YAML and its structure (at least one job, every job has steps, each step has exactly one of uses or run) and exits nonzero when invalid. Action inputs are not checked until the workflow runs.
appstore
fastforge appstore [GLOBAL OPTIONS] <COMMAND>
| Command group | Subcommands |
|---|---|
app |
list, view |
build |
list, view, upload, wait |
version |
list, view, submit |
submission |
list, view, create, items, add-item, remove-item, submit, cancel |
catalog |
pull, push |
api |
get, post, patch, delete |
Global options:
--json <FIELDS>--limit <LIMIT>--paginate--verbose--debug--no-color
appgallery
fastforge appgallery [GLOBAL OPTIONS] <COMMAND>
| Command group | Subcommands |
|---|---|
app |
resolve, view |
package |
list, status |
release |
submit an app for review |
api |
get, post, put, patch, delete |
See AppGallery Connect for authentication and examples.
googleplay
fastforge googleplay [GLOBAL OPTIONS] <COMMAND>
| Command group | Subcommands |
|---|---|
app |
view, check |
edit |
create, commit, delete |
bundle |
upload |
track |
list, view, update |
catalog |
pull, push |
api |
get, post, put, patch, delete |
Global options:
--json <FIELDS>--limit <LIMIT>--verbose--debug--no-color
Store subcommands have many options. Use help at each command level to inspect the current definitions:
fastforge appstore build upload --help
fastforge appstore submission create --help
fastforge appgallery app resolve --help
fastforge googleplay bundle upload --help
fastforge googleplay track update --help
version-check
fastforge version-check [--current-only]
Queries GitHub releases for the newest published version that ships a prebuilt binary for the current platform and reports whether an upgrade is available. With --current-only, prints only the local version without touching the network.
upgrade
fastforge upgrade [--force]
Downloads the latest release archive for the current platform (the same fastforge-<version>-<target> archive the installation scripts use) and replaces the running binary in place. It does nothing when the current version is already the latest; --force reinstalls anyway. If the binary lives in a directory you cannot write to (for example /usr/local/bin), re-run with elevated permissions or use the installation script.