Installing Artillery

What you’ll learn

  • How to install Artillery via npm
  • How to check that your Artillery installation is working

System requirements

Artillery is a CLI application that is installed on your computer. Artillery should run on any system that runs Node.js v12 or above.

Installing

npm install

Install Artillery via npm:

npm install -g artillery

This will install Artillery globally on your computer.

If you’re installing Artillery in a Docker container (or a Docker image, e.g. via RUN npm install -g artillery), make sure the installation is not run as the root user.

Artillery can also be installed as a dev dependency of a Node.js project with:

npm install -D artillery

Make sure that you have already run npm init or have a node_modules folder or package.json file in the root of your project to ensure Artillery is installed in the correct directory.

Checking your installation

If you used npm to install Artillery globally, run:

artillery dino

If you installed Artillery locally for a project, run the following command from the root folder of that project:

$(npm bin)/artillery dino

You should see an ASCII dinosaur printed to the terminal.