Skip to content
pubscout

sidekick_core

3.1.1, released 10 months ago by phntm.xyz

Shared sidekick commands, plugin engine, migrations, templates, and utilities for custom CLIs.

$ flutter pub add sidekick_core
Source repository

What it does

Provides shared commands, a plugin engine, migrations, and utilities for building customized project-scoped Dart CLIs. It includes prebuilt commands like analysis, formatting, dependency updates, and plugin management.

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

Use it when

  • You are building a custom project-specific sidekick CLI in Dart
  • You want to share repetitive CLI tasks across your team using Dart commands instead of Bash scripts

Skip it when

  • You are building a standard mobile, web, or desktop user-facing application
  • You do not need a custom project CLI generator

Strengths

  • Replaces complex bash scripts with testable and debuggable Dart code
  • Includes a rich set of prebuilt commands and an extensible plugin system

Weaknesses

  • Requires using the sidekick ecosystem and generator
  • Major versions introduce breaking changes to core command execution

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
15

Activate the sidekick generator globally via pub and run sidekick init in your project directory.

import 'package:sidekick_core/sidekick_core.dart';

Future<void> main(List<String> args) async {
  final runner = initializeSidekick(mainProjectPath: 'dev/integration_tests/flutter_gallery');
  runner.addCommand(YourCommand());
  runner.addCommand(SidekickCommand());
  return await runner.run(args);
}

Alternatives

Packages that do the same job and could replace sidekick_core.

Works with

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