Updating Flow
On this page
The docs and skills Flow installed in your project come from your version of @adonisplus/flow and from the packages in your package.json. Update them when either one changes.
When to update
Section titled "When to update"- After a new release of Flow, which adds and changes docs and skills. The changelog lists what changed in each release.
- After you upgrade a package to a new major version, such as
@adonisjs/inertiafrom 4.x to 5.x. - After you add a package that the Knowledge base covers, or remove one.
- After you clone the project.
.flow/docs/and the skills are in.gitignore, so a new clone has none of them.
How to update
Section titled "How to update"For a new release, update the Flow package first.
npm
npm i -D @adonisplus/flow@latestpnpm
pnpm add -D @adonisplus/flow@latestyarn
yarn add -D @adonisplus/flow@latestbun
bun add -d @adonisplus/flow@latestThen run the install again. If you only upgraded, added or removed a package, or cloned the project, this is the only step.
npx @adonisplus/flow installFlow reuses the answers saved in flow.lock, and does not ask about your agents or your stack again. It asks only about packages it finds for the first time, and drops the packages your package.json no longer has, along with their docs.
Starting over
Section titled "Starting over"To answer all the install questions again, delete flow.lock and run the install.
rm flow.lock
npx @adonisplus/flow installSee Installation and setup for what the install writes.