Test data and fixtures
How to load sample data and add documentation stored in Markdown.
Test data and fixtures
Documents live in herd/fixtures/doc/0.1/<lang>/. Register version, language, stable slug and metadata in herd/fixtures/doc/fixture.goat through crud:doc:persist. Preserve language and slug when refreshing content. Load herd/fixture.goat through the built application CLI, which owns CRUD commands. Goat automation and application CLI are separate programs. CMS development restarts preserve data without automatically reloading fixtures; deployment reapplies them. Do not put real credentials or personal data in fixtures.
goat run:script --path=@goatcms/herd/build/project.goat -- --mode=development
.tmp/bin/goatcms run:script --path=herd/fixture.goat