Skip to content

Updating

A key value for utilizing the Nava Platform is not only getting off the ground, but staying up to date with new features and developments that are provided in the upstream templates.

The Platform CLI is designed to try to make that process of keeping up to date easier. You can help yourself further by following the advice in Avoiding Conflicts on Update.

Important

You can not update a project repo that is "dirty" (i.e., has untracked files or pending changes according to Git).

So for template updates, it can be useful to have a dedicated worktree separate from your main development one (or stash changes, maintain an entirely separate local "clean" repo, etc.).

template-infra

nava-platform infra update .

This can often run into merge conflicts that need resolved manually though. The tool will provide some guidance if this happens. But you can also approach the update in the separate pieces yourself, first updating the infrastructure base with:

nava-platform infra update-base .

Then all the infrastructure for each application with:

nava-platform infra update-app --all .

(drop --all if you would rather choose the order to update the applications)

Application templates

nava-platform app update . <APP_NAME>