routed_cli 0.4.1
routed_cli: ^0.4.1 copied to clipboard
CLI runtime and command framework utilities for the Routed ecosystem.
Changelog #
0.4.1 - 2026-09-09 #
- Generated native
routed buildservers now remain alive after binding the listener instead of closing the engine immediately. - Added
routed build(also available asrouted cli build) to compile a self-contained native server binary or a Node.js JavaScript server bundle. Both generated entrypoints boot the normal application engine and provision provider and project CLI commands. - Routed CLI commands and generated command runners now consistently use the
Artisanal argument/console wrapper; the direct
package:argsdependency is no longer required byrouted_cli. - Project command discovery now boots the application's engine and includes
commands registered by service providers through
CliCommandRegistry. - Generated basic, API, web, and fullstack projects now include the
routed_databaseprovider, codegen-free SQLite/Ormed migrations, and a/db/healthexample route. - Added a Cloudflare scaffold with environment-backed D1 migrations, a
Fetch-compatible Worker entrypoint, and D1-backed
routed_authsessions. - Breaking: deployment target flags now come from runtime adapter providers; the CLI host no longer registers a built-in deploy command or owns the Cloudflare deployment implementation. Add the adapter's provider to the application engine used by CLI discovery.
0.4.0 - 2026-08-27 #
- Breaking: replace
--react-ssr-entrywith--ssr-entryfor Cloudflare deployments. - Cloudflare frontend deployments now copy the complete generated build,
including browser assets and stylesheets, while continuing to use the
ssr.entry.mjspath supplied to--ssr-entryfor Fetch SSR. The generated wrapper and asset namespace are frontend-neutral, with SSR requests handled at/__ssr; custom SSR entry filenames are preserved. Repeated deploys replace the generated asset directory so removed files do not linger.
0.3.2 - 2026-08-26 #
- Add repeatable Cloudflare
--var NAME=VALUEdeployment options for explicitly provisioning plaintext Worker variables such asAUTH_ORIGIN.
0.3.1 - 2026-08-25 #
- Adopted
very_good_analysisand completed public API Dartdoc coverage across the CLI, while preserving existing command and fluent-runner contracts. - Expanded examples for typed scaffolding, provider command registration, and Cloudflare deployment bindings and factory modes.
0.3.0 #
- Cloudflare deploys now support environment-backed Worker factories with
--cloudflare-factory environment, generatingdefineCloudflareFetchFactoryWithEnvironmentAsyncfor typed runtime bindings such as D1. - Defer project-command discovery until an invocation selects a non-built-in command, so broken project commands cannot block global flags or built-ins.
- New projects now get a typed
lib/config.dartbootstrap.lib/app.dartconsumes that bootstrap so CLI route inspection, OpenAPI generation, and deployment use the same provider composition as the application runtime. - Typed scaffolds now keep their shared config generic and compose only the providers selected by the template. Web starters use public typed view, storage, and static-mount constructors without YAML or implicit registries.
routed create --auth-plugin usernameopts into the username-first server plugin with typed auth deployment wiring; unselected auth plugins stay out.- Scaffold regression coverage now analyzes and compiles every generated project and executes its route-manifest entrypoint.
- API and full-stack templates now accept any
routed_testing0.x minor from0.4.0up to (but not including)1.0.0. - Cloudflare deploys now generate Container Durable Object wrappers and
containersconfiguration with--container. - Cloudflare deploys now emit
workflowsandsecrets_store_secretsbinding configuration with--workflowand--secrets-store. - Cloudflare deploys now accept repeatable
--d1 BINDING=DATABASE_NAME:DATABASE_IDoptions and emit the corresponding D1 bindings in generated Wrangler config. - Cloudflare deploys now accept repeatable
--r2,--queue, and--servicebindings and emit the corresponding R2, Queue producer, and service sections in generated Wrangler config. - Cloudflare deployment can now generate Durable Object factory registration,
Wrangler bindings, SQLite migrations, and named Worker class exports with
--durable-object. - Generated Durable Object exports now forward hibernation WebSocket message, close, and error callbacks.
0.2.2 #
- Updated the CLI to target the
routed0.4 provider facade. - Fixed scaffold expectations and configuration output for the current provider catalog.
0.1.0 #
- Initial extraction of Routed CLI runtime/framework utilities.
- Added command runner, base command, project command loader, and dev server runner.