Skip to content

Upgrading ​

Use forj render --plan to preview generated file changes before upgrading a GoForj Project.

Upgrade with a Coding Agent ​

Ask your coding agent to use the upgrading-goforj skill.

text
Upgrade this GoForj Project to the latest stable release. Review the render plan first and test each affected App.

You can give the agent a release tag instead. If the skill is missing, add it to your Project.

Inspect the Upgrade ​

Read the release notes and tagged UPGRADING.md for each release you are adopting. Check which Go version the target release requires.

Install the CLI for the release you want, then run the plan from the Project root. This example uses v0.42.0.

bash
go install github.com/goforj/goforj/cmd/[email protected]
forj render --plan

The plan lists each file, who owns it, and what to review. It leaves the Project untouched. For JSON output or a comparison with an earlier release, see Render Plans.

Apply the Changes ​

Follow the migration instructions for the components you use. Use a targeted command when the release notes provide one.

If you need a full forj render, try it in a disposable copy of the Project. Review the diff before bringing changes back. Check your starter-kit edits, App registrations, private settings, and existing migrations. See File Ownership.

Verify the Upgrade ​

From the Project root, rebuild the default App and run the tests.

bash
forj build
go test ./...

Build affected additional Apps with forj <app> build. For HTTP Apps, confirm your routes appear in forj route:list or forj <app> route:list. Run integration tests for behavior the upgrade changes, then review the Git diff.

Add the Skill to an Existing Project ​

When a CLI release includes the skill, forj new adds it automatically. To add it to an existing Project, save the upgrade skill source as .ai/skills/upgrading-goforj/SKILL.md.

Point your agent to the skill file. If you use Atlas, run forj atlas:update --skills from the Project root to copy it to your selected agents.