utopia_cli 0.2.0
utopia_cli: ^0.2.0 copied to clipboard
A CLI for scaffolding Flutter projects built on utopia_arch and utopia_hooks, with optional Claude Code skills and JSON-first agent workflows.
Changelog #
All notable changes to this project will be documented in this file.
0.2.0 - 2026-07-03 #
First release of utopia_cli on pub.dev. This package replaces
utopia_arch_cli (published
only as 0.1.0-dev.x); see the migration note below.
Scaffolding #
utopia create flutter_app <name>- scaffolds a Flutter app built on the Utopia stack (utopia_arch+utopia_hooks), including a sampleCounterScreen/State/View feature and pre-configured Claude Code skills (opt out with--no-skills).utopia create flutter_package <name>- Flutter package scaffolder.utopia add screen <name>- generates a Screen/State/View triad atlib/screen/<name>/and prints the exact routing snippet to paste.--jsonemits a machine-readable result for agents.- Mason bricks ship in-repo under
bricks/, so brick and CLI always release together.
Project inspection (JSON-first) #
utopia describe- emits project structure as versioned JSON (schema_version: 1, documented indoc/describe_schema.md): workspace shape (single package or Melos monorepo), screens classified by kind, routing strategy, global states, services, and foreign-framework artifacts.--routes-onlyfor a cheap routes view.utopia doctor- repo-wide audit with tag-based check selection (--check,--skip,--strict), conditional activation (framework checks run only when that framework is in the pubspec), structured findings (rule_id,severity,package,file,line,fix), and a--fail-onCI gate.--humanprints a digest to stderr alongside the JSON.utopia hooks analyze- per-file utopia_hooks rule analysis for editor hooks and CI (single file, explicit paths, changed files, or--all).- All relative paths in JSON output are posix-style on every platform, Windows included - one deterministic contract for agents.
Agent integration #
utopia init skills- writes.claude/settings registering theUtopia-USS/utopia-flutter-skillsmarketplace and enabling theutopia-hooksplugin.utopia init agents- writesAGENTS.mdwith the provider-neutral CLI workflow: inspect withdescribe, generate withadd screen --json, validate withdoctor.utopia mcp- Model Context Protocol server over stdio exposing the operational tools:describe,describe_routes,doctor,analyze_hooks_files,analyze_hooks_changed. Generators stay on the CLI surface by design.
Maintenance #
utopia bump- bumps allutopia_*dependencies inpubspec.yamlto the latest pub.dev versions with minimal-diff edits;--dry-runto preview.utopia update- self-update via pub.dev.
Migrating from utopia_arch_cli #
- dart pub global activate utopia_arch_cli
- utopia_arch_cli --name my_app --org io.utopiasoft
+ dart pub global activate utopia_cli
+ utopia create flutter_app my_app --org io.utopiasoft
The old utopia_arch_cli executable still works as a deprecated shim
in 0.2.0 and will be removed in 0.3.0.