In this exercise, you will change the Notes model before starting the database for the first time. Install Goat, Git and Docker, start Docker, and create a project with the goatcms-child starter. The older goatcms starter has its own recipes.

Before goat init, sign in to an account with an active project initialization entitlement. See Goat CLI for access details.

goat login
goat init ./my-project --name=my-project --git-repo=git@github.com:your-user/my-project.git --terminal-prefix=MYAPP --default-language=en --supported-languages=en,pl --template=goatcms-child
cd my-project

Add a priority to a note

  1. In herd/_model/50-notes.model.goat, find entity:add --name=note. Add the declaration below to the --properties heredoc alongside completed.
  2. In the --system block, find module:add --name=crud. Add priority to both field lists, --property:list:list and --property:list:persist. The starter already selects the Notes manager in herd/views/foundation.goat.
add --name=priority --type=short_text
goat re
goat run:script --path=@goatcms/herd/setup.goat
goat run:script --path=@goatcms/herd/dev/watch.goat

After the first frontend build, open http://localhost:8091/app/. Sign in as the starter's local administrator and create a note in Notes with priority high. Reopen it to confirm the value was saved. Stop the watcher, then run goat run:script --path=herd/ci/test.goat.

For an existing database, prepare a model migration before running the new version. Keep domain rules and application extensions in the project source under herd/ and child/.

Creating a project in the panel

When creating a project, empty Git author fields use the current account name and email. Saved Git values and your edits take precedence. After upgrading, MCP clients should refresh the catalogue to discover view_worker_account_profile (account:read, admin profile). Its read result includes suggestedAuthorName and suggestedAuthorEmail; get_git_profile and existing save inputs/results stay unchanged.