Sign inSign up

impostermocks/cli

By impostermocks

•Updated about 1 month ago

Image
1

3.7K

impostermocks/cli repository overview

⁠Imposter: Scriptable, multipurpose mock server

Reliable, scriptable and extensible mock server for REST APIs, OpenAPI (and Swagger) specifications, SOAP/WSDL Web Services, gRPC and Protobuf APIs.

This project is the CLI tool for the Imposter mock engine⁠.

Start a live mock of an OpenAPI specification with just:

docker run -v $PWD:/mocks -p 8080:8080 impostermocks/cli up -s

Your mock will be available at http://localhost:8080⁠.

⁠Start mocks

To start a mock server using configuration in your current directory:

docker run -v $PWD:/mocks -p 8080:8080 impostermocks/cli up

Your mock will be available at http://localhost:8080⁠.

⁠Scaffold configuration

To generate mock configuration files in your current directory:

docker run -v $PWD:/mocks impostermocks/cli scaffold

⁠Other commands

You can pass any CLI command and flags after the image name:

docker run -v $PWD:/mocks impostermocks/cli --help

Tag summary

Content type

Image

Digest

sha256:b464c8c79…

Size

8.6 MB

Last updated

2 months ago

docker pull impostermocks/cli