cmd 0.0.2-dev.1 cmd: ^0.0.2-dev.1 copied to clipboard
The cmd package is a command line tool for Flutter to run the most common shell/bash commands via pre-built scripts.
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. This package will help you quickly running the important CLI commands that are used in almost all Flutter projects by running 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 this package is helpful. Flutter's cmd package helps developers to save time by using pre-written shell scripts for performing the below operations:
Installation #
In your pubspec.yaml:
dev_dependencies:
cmd:
Run the following commands below to install cmd:
flutter pub get
flutter pub run cmd:install
In your project root directory you will find a folder cmd that contains all available scripts.
Usage #
VS Code
- Install Code Runner Extension
- Right click on Script you want to execute and select
Run Code
- Alternatively use this short key Ctrl + Alt + N after opening the file
Frequently Asked Questions ~ FAQs #
How to contribute to cmd?
Soon I will publish guidelines on how to contribute this package ✌🏻
Open Source Contributor from Punjab, Pakistan 🇵🇰