FluttyUI Logo
FluttyUI
Getting Started

CLI

Use the Flutty CLI to scaffold and maintain FluttyUI Flutter projects.

Install from pub.dev:

dart pub global activate flutty

Command format

flutty <command> [arguments]

Global options

OptionTypeDescription
-h, --helpboolShow help output
-v, --versionboolShow CLI version

Commands

init

flutty init <project_name> [options]
OptionTypeDefaultNotes
-t, --templateStringproviderAllowed: provider, getx, riverpod
-d, --descriptionStringA FluttyUI project.Written to generated files
-f, --forceboolfalseAllows creation in non-empty directory

Creates:

  • pubspec.yaml

  • lib/main.dart

  • .gitignore

  • README.md

  • .flutty/template.json

  • Project name must match ^[a-z][a-z0-9_]*$.

  • Without --force, command fails if target directory is non-empty.

Template names:

  • provider -> provider-starter
  • getx -> getx-starter
  • riverpod -> riverpod-starter

doctor

flutty doctor

Checks:

  • pubspec.yaml exists.
  • pubspec.yaml contains flutter: (warn if missing).
  • lib/main.dart exists (warn if missing).

upgrade

flutty upgrade
  • Requires pubspec.yaml in current directory.
  • Applies pending schema migrations.

Option:

  • --dry-run: list pending migrations without writing files.