搜索插件、代码仓与 APP 分类

插件详情v1.6.0

very_good_cli

由 Very Good Ventures 创建的 Dart 的非常优秀的命令行界面。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
27.9万
喜欢数
727
Pub 分数
150

安装插件

flutter pub add very_good_cli

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个由 Very Good Ventures 创建的用于 Dart 和 Flutter 开发的命令行界面(CLI)工具。它通过直观的命令简化了项目设置、代码生成和常见的开发工作流程。该 CLI 旨在通过减少样板代码并统一跨平台(包括 Android、iOS、Web、macOS、Windows 和 Linux)的项目结构来提升生产力。CLI 与 Dart 生态系统无缝集成,并支持现代开发实践,如干净架构和测试驱动开发。对于希望保持一致性并加速入职的新团队尤其有用。

适合场景

  • 快速项目初始化
  • 自动化代码生成
  • 标准化项目脚手架
  • 跨平台开发设置
  • 团队工作流一致性
  • 测试驱动开发支持

主要特点

  • 预定义项目模板
  • 代码生成工具
  • 跨平台支持
  • 与 Flutter 和 Dart 的集成
  • 一致的项目结构
  • 内置的静态分析和格式化

适合对象

  • Flutter 开发者
  • 使用清洁架构的团队
  • Flutter 新手
  • CI/CD 流水线集成
  • 需要标准化工作流程的项目

使用建议

  • 需要熟悉命令行工具
  • 高级用户自定义功能有限
  • 取决于 Very Good Ventures 的约定
  • 可能不适合高度专业化的项目结构
  • 最适合与推荐模式一致的项目

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Very Good CLI

ci coverage pub package style: very good analysis License: MIT


A Very Good Command-Line Interface for Dart.

Developed with 💙 by Very Good Ventures 🦄

Documentation 📝

For official documentation, please visit https://cli.vgv.dev.

Quick Start 🚀

Installing 🧑‍💻
dart pub global activate very_good_cli

Or install a specific version using:

dart pub global activate very_good_cli <version>

If you haven't already, you might need to set up your path.

When that is not possible (eg: CI environments), run very_good commands via:

dart pub global run very_good_cli:very_good <command> <args>
Commands ✨
very_good create

Create a very good project in seconds based on the provided template. Each template has a corresponding sub-command (e.g.,very_good create flutter_app will generate a Flutter starter app).

Very Good Create

Creates a new very good project in the specified directory.

Usage: very_good create <subcommand> <project-name> [arguments]
-h, --help    Print this usage information.

Available subcommands:
  app_ui_package    Generate a Very Good App UI package.
  dart_cli          Generate a Very Good Dart CLI application.
  dart_package      Generate a Very Good Dart package.
  docs_site         Generate a Very Good documentation site.
  flame_game        Generate a Very Good Flame game.
  flutter_app       Generate a Very Good Flutter application.
  flutter_package   Generate a Very Good Flutter package.
  flutter_plugin    Generate a Very Good Flutter plugin.

Run "very_good help" to see global options.
Usage
# Create a new Flutter app named my_app
very_good create flutter_app my_app

# Create a new Flutter app named my_app with a custom org
very_good create flutter_app my_app --desc "My new Flutter app" --org "com.custom.org"

# Create a new Flutter app named my_app with a custom application id
very_good create flutter_app my_app --desc "My new Flutter app" --application-id "com.custom.app.id"

# Create a new App UI package named my_app_ui_package
very_good create app_ui_package my_app_ui_package --desc "My new App UI package"

# Create a new Flame game named my_game
very_good create flame_game my_game --desc "My new Flame game"

# Create a new Flutter package named my_flutter_package
very_good create flutter_package my_flutter_package --desc "My new Flutter package"

# Create a new Dart package named my_dart_package
very_good create dart_package my_dart_package --desc "My new Dart package"

# Create a new Dart package named my_dart_package that is publishable
very_good create dart_package my_dart_package --desc "My new Dart package" --publishable

# Create a new Dart CLI application named my_dart_cli
very_good create dart_cli my_dart_cli --desc "My new Dart CLI package"

# Create a new Dart CLI application named my_dart_cli with a custom executable name
very_good create dart_cli my_dart_cli --desc "My new Dart CLI package" --executable-name my_executable_name

# Create a new Flutter plugin named my_flutter_plugin (all platforms enabled)
very_good create flutter_plugin my_flutter_plugin --desc "My new Flutter plugin"

# Create a new Flutter plugin named my_flutter_plugin (some platforms only)
very_good create flutter_plugin my_flutter_plugin --desc "My new Flutter plugin" --platforms android,ios,macos

# Create a new docs site named my_docs_site
very_good create docs_site my_docs_site


very_good test

Run tests in a Dart or Flutter project.

# Run all tests
very_good test

# Run all tests and collect coverage
very_good test --coverage

# Run all tests and enforce 100% coverage
very_good test --coverage --min-coverage 100

# Run only tests in ./some/other/directory
very_good test ./some/other/directory

# Run tests recursively
very_good test --recursive

# Run tests recursively (shorthand)
very_good test -r

# Run tests on a specific platform
very_good test --platform chrome
very_good packages get

Get packages in a Dart or Flutter project.

# Install packages in the current directory
very_good packages get

# Install packages in ./some/other/directory
very_good packages get ./some/other/directory

# Install packages recursively
very_good packages get --recursive

# Install packages recursively (shorthand)
very_good packages get -r
very_good packages check licenses

Check packages' licenses in a Dart or Flutter project.

# Check licenses in the current directory
very_good packages check licenses

# Only allow the use of certain licenses
very_good packages check licenses --allowed="MIT,BSD-3-Clause,BSD-2-Clause,Apache-2.0"

# Deny the use of certain licenses
very_good packages check licenses --forbidden="unknown"

# Check licenses for certain dependencies types
very_good packages check licenses --dependency-type="direct-main,transitive"

# Check and list licenses in the current directory
very_good packages check licenses --reporter="csv"
very_good mcp

Start the MCP (Model Context Protocol) server for AI assistant integration.

ℹ️ Experimental
This command relies on the Dart MCP Server. This is an experimental package and may change or become unstable without notice. Use it with caution at your own risk.

# Start the MCP server
very_good mcp

The MCP server exposes Very Good CLI functionality through the Model Context Protocol, allowing AI assistants to interact with the CLI programmatically. This enables automated project creation, testing, and package management through MCP-compatible tools.

Available MCP Tools:

  • create: Create new Dart/Flutter projects (https://cli.vgv.dev/docs/category/templates)
  • tests: Run tests with optional coverage and optimization (https://cli.vgv.dev/docs/commands/test)
  • packages_check_licenses: Check packages for issues and licenses (https://cli.vgv.dev/docs/commands/check_licenses)
  • packages_get: Get package information and dependencies (https://cli.vgv.dev/docs/commands/get_pkgs)
very_good --help

See the complete list of commands and usage information.

🦄 A Very Good Command-Line Interface

Usage: very_good <command> [arguments]

Global options:
-h, --help            Print this usage information.
    --version         Print the current version.
    --[no-]verbose    Noisy logging, including all shell commands executed.

Available commands:
  create     very_good create <subcommand> <project-name> [arguments]
             Creates a new very good project in the specified directory.
  mcp        Start the MCP (Model Context Protocol) server. WARNING: This is an experimental package and may change or become unstable without notice. Use it with caution at your own risk.
  packages   Command for managing packages.
  test       Run tests in a Dart or Flutter project.
  update     Update Very Good CLI.

Run "very_good help <command>" for more information about a command.

所属分类

依赖

依赖清单 23 项

源码仓库

使用此插件的项目

暂无相关数据。