Skip to main content

smartwork_cli 1.0.3 copy "smartwork_cli: ^1.0.3" to clipboard
smartwork_cli: ^1.0.3 copied to clipboard

CLI interface for Smartwork project generation and management.

smartwork_cli #

"Don't read success stories, you will only get a message. Read failure stories, you will get some ideas to get access." — APJ Abdul Kalam

The all-in-one Flutter project companion — init, architect, scaffold, test, and ship, without leaving the terminal.

SmartWork bootstraps a real Flutter app with a consistent architecture, grows it with features, services, targets, fonts, and localization, and verifies it's still healthy — one command at a time.

Demo #

SmartWork #

smartwork init walking through configuration, bootstrapping, and validation in the terminal

Generated App #

The Flutter app generated by smartwork init running on iOS

Requirements #

  • The latest stable Flutter SDK. Generated projects use the newest package versions, which older Flutter releases can't resolve. smartwork doctor checks this for you; if your SDK is too old, SmartWork tells you to run flutter upgrade.

Install #

dart pub global activate smartwork_cli

Make sure Dart's global bin directory is on your PATH:

# macOS/Linux (add to ~/.zshrc, ~/.bashrc, etc.)
export PATH="$PATH:$HOME/.pub-cache/bin"
# Windows (PowerShell)
$env:Path += ";$env:LOCALAPPDATA\Pub\Cache\bin"

Quick Start #

smartwork init
smartwork feature profile
smartwork service add analytics
smartwork doctor

Every command has --help, e.g. smartwork feature --help.

Debug screen: in the generated app (debug builds only), tap the version text on the Home screen 10 times to open it — switch Environment and Theme, or send a test notification.

Commands #

Command What it does
smartwork init Bootstraps a real Flutter project and applies architecture, state management, network, storage, fonts, localization, and Production Services
smartwork feature <name> Generates a new feature; smartwork feature remove <name> deletes one
smartwork service add|remove <name> Adds or removes a Production Service (analytics, notifications, secure session, remote config, ...)
smartwork target Changes an existing project's App Targets (Android/iOS/Web/Windows/macOS/Linux)
smartwork font Adds or updates the Custom/Google Font on an existing project
smartwork localization Adds or updates localization on an existing project
smartwork model from-json Generates a Dart model from a JSON sample
smartwork icon Generates the App Icon from one square source image
smartwork splash Adds or reconfigures the Splash Screen
smartwork discover Read-only analysis of any existing Flutter project
smartwork doctor Checks whether the SmartWork/Flutter environment (including your Flutter SDK's package compatibility) and current project are healthy
smartwork test Analyzes, generates, and maintains tests for an existing feature
smartwork update Updates the installed SmartWork CLI itself
smartwork version Prints the installed SmartWork CLI version

Updating #

smartwork update

When a newer version is on pub.dev, every command reminds you to run it.

Updating from 1.0.2 or earlier: run dart pub global activate smartwork_cli once — smartwork update in those versions can't update a pub.dev install.

Documentation #

Full documentation, including MCP setup, lives in the SmartWork repository.

License #

MIT — see LICENSE.

2
likes
160
points
493
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CLI interface for Smartwork project generation and management.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, smartwork_core

More

Packages that depend on smartwork_cli