Open MercatoDocsSearch docsAPI reference

CLI

mercato example seed-todos

Populate the example module with todo records and sample custom fields. Confirm you are using the development environment where you want that test data.

yarn mercato example seed-todos populates example Todos for a tenant/organization pair and ensures the module’s custom entity definitions are installed.

Usage

yarn mercato example seed-todos --org <organizationId> --tenant <tenantId>

Aliases:

Behavior

  1. Installs or refreshes the example module’s custom entities and fields for the tenant (installCustomEntitiesFromModules).
  2. Creates 10 Todo records with alternating completion states scoped to the provided organization and tenant.
  3. Applies custom field values (priority, severity, blocked, labels) using the shared Data Engine.
  4. Logs progress and finishes with Seeded 10 todos with custom fields for org=<id>, tenant=<id>.

Example

ORG_ID=$(yarn mercato auth list-orgs | awk 'NR==5 {print $1}')
TENANT_ID=$(yarn mercato auth list-tenants | awk 'NR==5 {print $1}')
yarn mercato example seed-todos --org "$ORG_ID" --tenant "$TENANT_ID"

Troubleshooting

Previous: Module CLI commands · Next: mercato feature_toggles override-set-value