Skip to main content

Command reference

In the platform repository​

Run from the repository root, with Bun 1.4.4.

CommandPurpose
bun installInstall dependencies
bun run generate:tanstack -- -i <model> -o <dir> -n <name>Generate an application (options)
bun run emlThe model language command line: validate, info, sagas, generate
bun run devStart the modelling tool on http://localhost:3000
bun run spec:checkEvery gate the CEDM library is held to
bun run parityGenerate with both generators and require identical backends
bun run translate -- <model> -o <dir>Translate a model in the earlier notation into CEDM
bun run compiere:data -- --app <project>Load Compiere's demonstration data into a generated Compiere application
bun run test, bun run test:generatorUnit tests
bun run type-checkTypeScript checks

In a generated project​

CommandWherePurpose
cargo loco db migratebackend/Apply migrations
cargo loco db seedbackend/Apply the dictionary, workflows, access rules and administrator
cargo loco start --server-and-workerbackend/Run the API and its background worker
cargo loco task <name>backend/Run one task, such as seed_dictionary
LOCO_ENV=test cargo test --test appbackend/The Rust request suites
bun run devfrontend/The web front end in development
bun run testtests/The Bun API suites
bun run qatests/Smoke-test every screen, then the Rust suites
docker compose upproject rootDatabase, backend and front end together

cargo loco is an alias the project defines in backend/.cargo/config.toml, so nothing needs installing globally.