Repository navigation
Releases
Releases · roost-framework/roost-cli
roost 3.0.1
roost 3.0.1 generates apps for swift-roost 2.5.0, which requires macOS 15.
- Generated apps depend on swift-roost 2.5.0 or later and say
.macOS(.v15)inPackage.swift. With roost 3.0.0,roost newon macOS made an app that SwiftPM rejected once swift-roost 2.5.0 was out.
Upgrade: on macOS, an app generated by an earlier release builds with swift-roost 2.5.0 once its Package.swift says .macOS(.v15).
See the changelog.
roost 3.0.0
roost 3.0.0 runs database and route commands through the app, generates live resources, and drops roost spectro.
roost db setup|create|drop|seed|resetandroost routes, likemix ecto.setupandmix phx.routes. They run the app's own executable, so they use the server's configuration.roost gen live Task title:string --scope user_id, likemix phx.gen.live: a live index with a create form validated as you type and delete without reloads. Forms still post to the controller without JavaScript.roost migratepasses its options to the app:roost migrate down --step 2,roost migrate down --all.- Breaking:
roost spectrois removed. Spectro's CLI didn't read the app's configuration and, withoutDB_NAME, used thepostgresmaintenance database. Useroost dbandroost migrate.roost newno longer enables swift-roost'sRichTerminaltrait. roost gen htmlandroost gen jsonno longer crash.roost server,roost migrate, androost dbrun the app's Postgres 18 in a container,roost-<app>-db, with Apple'scontaineror Docker. An explicitDB_HOSTkeeps a Postgres you run yourself.
Generated apps depend on swift-roost 2.4.0 or later. roost db, roost routes, and roost migrate's options need it in existing apps: run swift package update swift-roost. See the changelog.
roost 2.1.1
roost newwrites apps that depend on swift-roost 2.1.3 or later with its
RichTerminaltrait, soroost spectroshows Spectro's colors, spinners,
and styled tables again. Remove"RichTerminal"fromroostTraitsin the
generatedPackage.swiftto skip downloading Noora.roost new --tailwindgenerates a working Tailwind v4 setup:@import "tailwindcss";inPublic/css/input.cssand notailwind.config.js.
Earlier projects compiled an almost empty stylesheet because the generated
v3 setup is ignored by v4. The Tailwind binary is pinned to v4.3.3, and
roost serverandroost buildwarn wheninput.cssstill uses the v3
@tailwinddirectives.
roost 2.1.0
The first release of the roost CLI as its own package. It previously shipped
inside swift-roost, which made mint install resolve the framework's whole
dependency graph.
- Install with
mint install roost-framework/roost-cli@2.1.0. - Generated apps depend on swift-roost 2.1.0 and ESW 1.6.0.
roost gen resourcegenerates controllers instead of closure routes:
TodoControllerfor HTML andTodoAPIControllerfor JSON, registered with
resources(...). Scoped HTML controllers runrequireAuth()as a controller
plug. Actions decode input withconn.permit, so only the input type's
fields can be set.roost gen authgeneratesRegistrationControllerandSessionController,
with their routes inRoutes/AuthRoutes.swift.roost newgenerates aPageControllerfor/and logs requests with
roost_requestLogger().roost spectro <arguments>runs thespectroexecutable from the app's own
dependencies.