Usage
Both pull and push commands accept a document type as the first argument and a Mock API ID as the second:<mock_api_id> is the ID of the Mock API that should receive the recorded stubs. At present you can get that
value by browsing into a Mock API at https://app.wiremock.cloud and extracting it from the URL - for instance in the URL
https://app.wiremock.cloud/mock-apis/zwg1l/stubs/1e0d7dc0-06a0-49a2-81a7-f5d6a40bfa3d, the ID is zwg1l so you
should pull its OpenAPI as so:
open-api and graphql. The Mock API should be of the appropriate type (defined
at Mock API creation time).
All the commands have an optional -f or --file option, specifying the file to either save the document to (for pull)
or send as the document (for push):
Watching
Thepush commands have an additional -w / --watch which require the file to be defined with -f / --file.
It will leave the CLI running and automatically push the file whenever it is saved.