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