Imposter can be installed on Linux, macOS and Windows.
If you're looking to upgrade Imposter, see Upgrade.
Imposter supports different mock engine types: Docker (default) and JVM. For more information about configuring the engine type see:
- Docker engine (default)
- JVM engine
You must have at least one of the engine types configured to use Imposter.
Use these instructions to get up and running quickly.
If you have Homebrew installed:
brew tap gatehill/imposter
brew install imposter
Or, use this one liner (macOS and Linux only):
curl -L https://raw.githubusercontent.com/gatehill/imposter-cli/main/install/install_imposter.sh | bash -
Warning It is good practice to examine the script first.
See Releases for the latest version.
Only Intel x86_64 and ARM64 are supported on macOS.
# see https://github.com/gatehill/imposter-cli/releases
export IMPOSTER_CLI_VERSION=0.1.0
curl -L -o imposter.tar.gz "https://github.com/gatehill/imposter-cli/releases/download/v${IMPOSTER_CLI_VERSION}/imposter_${IMPOSTER_CLI_VERSION}_macOS_x86_64.tar.gz"
tar xvf imposter.tar.gz
mv ./imposter /usr/local/bin/imposter
Intel x86_64, ARM32 and ARM64 is supported on Linux.
# see https://github.com/gatehill/imposter-cli/releases
export IMPOSTER_CLI_VERSION=0.1.0
# choose one
#export IMPOSTER_ARCH=arm64
#export IMPOSTER_ARCH=arm
export IMPOSTER_ARCH=x86_64
curl -L -o imposter.tar.gz "https://github.com/gatehill/imposter-cli/releases/download/v${IMPOSTER_CLI_VERSION}/imposter_${IMPOSTER_CLI_VERSION}_Linux_{IMPOSTER_ARCH}.tar.gz"
tar xvf imposter.tar.gz
mv ./imposter /usr/local/bin/imposter
Only Intel x86_64 is supported on Windows.
These instructions assume
curl
andunzip
are available. You can also download the ZIP archive from the Releases page.
# see https://github.com/gatehill/imposter-cli/releases
SET IMPOSTER_CLI_VERSION=0.1.0
curl.exe --output imposter.zip --url "https://github.com/gatehill/imposter-cli/releases/download/v%IMPOSTER_CLI_VERSION%/imposter_%IMPOSTER_CLI_VERSION%_Windows_x86_64.zip"
unzip.exe imposter.zip
# use command (or add to PATH)
imposter.exe [command/args]
To uninstall, remove the imposter
binary from /usr/local/bin
(macOS and Linux only).
rm /usr/local/bin/imposter