Skip to content
pubscout

cli_pkg

2.16.1, released 9 days ago by sass-lang.com

Grinder tasks for releasing Dart CLI packages.

$ flutter pub add cli_pkg
Source repository

What it does

Provides a set of Grinder tasks that automate releasing Dart command-line applications to various channels like GitHub releases, npm, Homebrew, and pub.dev. It handles creating standalone archives and integrates with CI environments.

AI-written summary of version 2.16.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building and releasing a Dart command-line application.
  • You want to automate publishing to GitHub releases, npm, Homebrew, and pub.dev using Grinder.

Skip it when

  • You are developing a Flutter mobile or desktop UI application rather than a Dart CLI app.
  • You do not use Grinder for task running.

Strengths

  • Simplifies multi-channel distribution for CLI apps.
  • Highly configurable with top-level ConfigVariables.

Weaknesses

  • Tied strictly to the Grinder task runner ecosystem.
  • Limited applicability outside of Dart CLI packaging.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
25

Import package:cli_pkg/cli_pkg.dart and call pkg.addAllTasks() before grind(args) in your grinder script.

import 'package:cli_pkg/cli_pkg.dart' as pkg;
import 'package:grinder/grinder.dart';

void main(List<String> args) {
  pkg.addAllTasks();
  grind(args);
}

Works with

Packages commonly used together with cli_pkg: ones it builds on, ones built on it, and its own family.