cmd Points Popularity Likes Telegram WhatsApp Contribute Now Donate Now

flutter cmd

Flutter, a mobile development UI kit managed by Google comes with the handy CLI (Command Line Interface). It lets you do the same tasks that you perform using IDE. CMD package helps you quickly running the common CLI commands that are used in almost all Flutter projects by running pre-written scripts. Flutter developers find it difficult to type commands again and again and sometimes you need to run a series of commands one after another. This is where CMD package is helpful. Flutter's cmd package helps developers to save time by running scripts for performing the below operations:

flutter cmd

โœจ Features

๐ŸŽฏ Interactive Dialer Interface

  • Modern terminal-based menu system
  • Easy navigation between script categories
  • Color-coded interface for better UX

๐Ÿฅ Environment & Doctor

  • flutter doctor - Advanced environment checking
  • Channel management and version control
  • Configuration management

๐Ÿƒ Run & Debug

  • flutter run - Enhanced run commands
  • Device selection and management
  • Flavor and architecture support
  • Performance monitoring options

๐Ÿ”จ Build & Deploy

๐Ÿ” App Signing

๐Ÿงช Testing & Analysis

๐Ÿงน Maintenance

๐Ÿ”ง Setup & Tools

  • NEW! Project setup - Quick project initialization
  • State management setup (Provider, Bloc, Riverpod)
  • Firebase integration
  • Environment configuration

๐Ÿ–ฅ๏ธ Platform-Specific Tools

โ˜๏ธ Cloud & Deploy

Installation

Add cmd as dev_dependency by running the command below:

flutter pub add -d cmd

OR

Add cmd this in your pubspec.yaml:

dev_dependencies:
  cmd:

Run the following commands below to install cmd:

flutter pub get
dart run cmd:install

In your project root directory you will find a folder cmd that contains all available scripts.

FAQs
โ”œโ”€โ”€ project
โ”‚   โ”œโ”€โ”€ cmd
โ”‚   โ”‚   โ”œโ”€โ”€ dialer.sh              # ๐ŸŽฏ Interactive main menu
โ”‚   โ”‚   โ”œโ”€โ”€ doctor.sh              # ๐Ÿฅ Environment checking
โ”‚   โ”‚   โ”œโ”€โ”€ run.sh                 # ๐Ÿƒ Run & debug utilities
โ”‚   โ”‚   โ”œโ”€โ”€ build.sh               # ๐Ÿ”จ Build for all platforms
โ”‚   โ”‚   โ”œโ”€โ”€ clean.sh               # ๐Ÿงน Deep cleaning
โ”‚   โ”‚   โ”œโ”€โ”€ pub.sh                 # ๐Ÿ“ฆ Package management
โ”‚   โ”‚   โ”œโ”€โ”€ android_signing.sh     # ๐Ÿ” Android signing
โ”‚   โ”‚   โ”œโ”€โ”€ ios_signing.sh         # ๐ŸŽ iOS signing
โ”‚   โ”‚   โ”œโ”€โ”€ testing.sh             # ๐Ÿงช Testing & analysis
โ”‚   โ”‚   โ”œโ”€โ”€ performance.sh         # โšก Performance testing
โ”‚   โ”‚   โ”œโ”€โ”€ setup.sh               # ๐Ÿ”ง Project setup
โ”‚   โ”‚   โ”œโ”€โ”€ deploy.sh              # ๐Ÿš€ Firebase deployment
โ”‚   โ”‚   โ”œโ”€โ”€ cors_gcs.sh            # โ˜๏ธ Google Cloud Storage
โ”‚   โ”‚   โ”œโ”€โ”€ macos_utils.sh         # ๐ŸŽ macOS utilities
โ”‚   โ”‚   โ””โ”€โ”€ windows_utils.sh       # ๐ŸชŸ Windows utilities

Usage

Navigate to your project's cmd directory and run the main dialer:

cd cmd
./dialer.sh

The dialer provides an intuitive menu system with categories:

  • ๐Ÿฅ Environment & Doctor
  • ๐Ÿƒ Run & Debug
  • ๐Ÿ”จ Build & Deploy
  • ๐Ÿงน Clean & Maintenance
  • ๐Ÿ“ฆ Package Management
  • ๐Ÿ” App Signing
  • ๐Ÿงช Testing & Analysis
  • โšก Performance
  • ๐Ÿ”ง Setup & Tools
  • โ˜๏ธ Cloud & Deploy

๐Ÿ“ฑ Individual Scripts

You can also run individual scripts directly:

# Make scripts executable (first time only)
chmod +x *.sh

# Run specific scripts
./doctor.sh          # Environment check
./build.sh           # Build for platforms
./testing.sh         # Run tests
./android_signing.sh # Sign Android apps
./setup.sh           # Setup new projects

Usage in VS Code ๐Ÿง‘๐Ÿปโ€๐Ÿ’ป

  • Install Code Runner Extension
  • Right click on Script you want to execute and select Run Code
  • Alternatively use these short keys Ctrl + Alt + N when the script is opened.

What's New in v1.0.0 ๐ŸŽ‰

๐ŸŽฏ Interactive Dialer Interface

  • Modern terminal-based navigation
  • Color-coded menus and feedback
  • Intuitive categorization

๐Ÿ” Complete App Signing Solution

  • Android keystore creation and management
  • iOS provisioning and certificate handling
  • Automated signing configuration

๐Ÿงช Comprehensive Testing Suite

  • Unit, widget, and integration testing
  • Performance profiling and analysis
  • Code coverage reporting
  • Continuous testing with file watching

โšก Performance Testing Tools

  • Memory and CPU profiling
  • Startup performance analysis
  • Build size optimization
  • Frame rate monitoring

๐Ÿ”ง Advanced Setup Utilities

  • Project templates and scaffolding
  • State management setup
  • Firebase integration
  • Environment configuration

๐Ÿ–ฅ๏ธ Platform-Specific Tools

  • macOS: Xcode, CocoaPods, Simulator management
  • Windows: Visual Studio, MSBuild, package management
  • Cross-platform compatibility

๐Ÿš€ Enhanced Build System

  • Interactive build options
  • Multi-platform builds
  • Build size analysis
  • Export management

Contribution ๐Ÿ’™

You are warmly welcome for contributing cmd package. You may add single line scripts or batch scripts such as cmd/build.sh. Checkout this contribution guide.

cmd contributions

Open Source Contributor from Punjab, Pakistan ๐Ÿ‡ต๐Ÿ‡ฐ


Buy me a Coffee โ˜•


Flutter cmd package

Libraries

cmd