Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 596 Bytes

cli.md

File metadata and controls

22 lines (15 loc) · 596 Bytes

Running APIs from the CLI

Use testlight run to send an API request from the command line:

testlight run path/to/api.mmt --env-file env.mmt --preset dev

Run a named example:

testlight run path/to/api.mmt --example happy-path
testlight run path/to/api.mmt --example '#1'

Pass runtime inputs and env overrides:

testlight run path/to/api.mmt -i user_id=42 --env-file env.mmt -e api_url=http://localhost:8080

See Testlight — Options · Testlight · Environment CLI