Preview: SendMock has no stable release yet. These docs follow develop.

CLI reference

Seed commands

sendmock seed apply

Apply a seed file; 422 with the errors when it is invalid.

sendmock seed apply <file>
ArgumentTypeDescription
<file>requiredpath
A file whose text is sent as seed_toml: The seed file's text (sendmock.seed.toml).Example: sendmock.seed.toml

Example

sendmock seed apply sendmock.seed.toml

Output with --json: SeedValidation. Exit codes: 0, 1, 2.

API
POST/api/v1/seed/apply
MCP tool
sendmock_seed_apply
In the app
Settings > Seed > Apply a seed file

sendmock seed export

The current configuration as sendmock.seed.toml.

sendmock seed export

Example

sendmock seed export

Output with --json: file (application/toml). Exit codes: 0, 1, 2.

API
GET/api/v1/seed/export
MCP tool
sendmock_seed_export
In the app
Settings > Seed > Export sendmock.seed.toml

sendmock seed validate

Check a seed file without applying it.

sendmock seed validate <file>
ArgumentTypeDescription
<file>requiredpath
A file whose text is sent as seed_toml: The seed file's text (sendmock.seed.toml).Example: sendmock.seed.toml

Example

sendmock seed validate sendmock.seed.toml

Output with --json: SeedValidation. Exit codes: 0, 1, 2.

API
POST/api/v1/seed/validate
MCP tool
sendmock_seed_validate
In the app
Settings > Seed > Validate