Skip to content
pubscout

cli_launcher

0.3.4+1, released 4 weeks ago by gabriel.terwesten.net

Utility to launch a locally installed version of a CLI when a global version is invoked.

$ flutter pub add cli_launcher
Source repository

What it does

When a globally installed CLI runs, it checks for a matching package in the current or parent directories. If a different local version is found, it relaunches the CLI using that local version, otherwise it continues with the global one.

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

Use it when

  • Developing a Dart CLI that may be installed globally and locally
  • Ensuring the correct version of a CLI runs during development or CI

Skip it when

  • You only need a single installation path for your CLI
  • The CLI is not distributed via pub packages

Strengths

  • Automatically resolves version mismatches
  • Works with Dart 3.14 and newer
  • No extra build steps required

Weaknesses

  • Limited to Dart CLI packages
  • Only supports launch logic, no other features

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2
import 'package:cli_launcher/cli_launcher.dart';

void main(List<String> args) => launchExecutable(args);

Alternatives

Packages that do the same job and could replace cli_launcher.

  • io

    Provides general file and process utilities but lacks the specific launch‑version logic of cli_launcher

Works with

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