Skip to main content

NeoLoad CLI Python package

Overview

Load testing as code. Built by an AI agent or by hand, checked in seconds, run at any scale.
For developers, DevOps and performance engineers.

Property Value
Maturity Stable
Author Tricentis
License BSD 2-Clause "Simplified"
NeoLoad Licensing FREE, Professional, or Enterprise edition
Supported versions Tested with NeoLoad Web from version 2.3.2
Download Binaries See the latest release on PyPI

What's new in 2026.3

NeoLoad CLI 2026.3 is the design release. Write the test as YAML, prove it on your machine with one virtual user, then run that same file at scale.

A local check loop in seconds. neoload checkvu replays your test with one virtual user on your machine, before you use any dedicated load generator. It validates the as-code file, runs each user path once, and exits only when every path passes. That is the loop you, or an AI agent, use to generate, check, and fix.

Let an AI agent build the test, end to end. Download the design workspace from the Tricentis Support Hub, open it in Claude Code or Cursor, and describe your application. The agent reads your sources, or explores and records the running application itself. It writes the YAML, then checks and fixes it with neoload checkvu until it passes. It asks you only what it cannot infer.

Or write it yourself. NeoLoad tests are plain YAML files, versioned and reviewed with your application code. Declare the as-code $schema in the YAML and your IDE validates and completes them as you type.

Same test, any scale. The YAML you check on your laptop runs unchanged from any CI/CD pipeline on NeoLoad Web, with SLAs that fail the build when performance regresses.

TL;DR ... How

neoload login $NLW_TOKEN \
        test-settings --zone $NLW_ZONE_DYNAMIC --lgs 5 --scenario sanityScenario createorpatch NewTest1 \
        project --path tests/neoload_projects/example_1 upload NewTest1 \
        run

NOTE: On the Windows command line, replace the \ line-continuation characters above with ^.

Contents

Prerequisites

The CLI requires Python 3.

  • Download and install Python 3 for Windows from Python.org.
    • Make sure you check the option Add Python to the environment variables.
    • Install pip: python -m pip install -U pip
  • Download and install Python 3 for macOS from Python.org - Python 3 on macOS.

Optional: install Docker if you want to host the test infrastructure on your machine (this feature is not supported with Docker for Windows).

Installation

pip3 install neoload
neoload --help

NOTE: if you receive SSL download errors when running the command above, you may also need to install the trusted root certificates with:

pip3 install certifi

Login to NeoLoad Web

The NeoLoad CLI uses the NeoLoad Web APIs for most operations, so you must log in before running any commands.

neoload login [TOKEN]
neoload login --url http://your-onpremise-neoload-api.com/ --workspace "Default Workspace" your-token

By default, the CLI connects to NeoLoad Web SaaS to lease a license.
For a self-hosted Enterprise license, you must specify the NeoLoad Web API URL with --url.

The CLI stores data locally, such as the API URL, token, workspace ID, and the test ID you are currently working on. Commands can be chained!

neoload status          # Displays stored data

Setup a test

Optionally choose a workspace to work with

Usage: neoload workspaces [OPTIONS] [[ls|use]] [NAME_OR_ID]
Help: neoload workspaces --help
neoload workspaces use "Default Workspace"

You can select your workspace at login or with the use sub-command. If no workspace is specified, the "Default Workspace" is used.
/!\ Zones are shared between workspaces.

Setup resources in NeoLoad Web

Running a test requires an infrastructure defined in the NeoLoad Web Zones section (see the documentation on how to manage zones). At a minimum, you need either a dynamic or a static zone containing one controller and one load generator. The simplest approach is to add resources to the "Default zone", since the CLI uses it by default.

Define a test

A NeoLoad Web test contains the test configuration and the list of its test results. You can analyze transaction values across the most recent test results to detect regressions.

Usage: neoload test-settings [OPTIONS] [[ls|create|put|patch|delete|use|createorpatch]] [NAME]
Help: neoload test-settings --help
neoload test-settings --zone defaultzone --lgs 5 --scenario sanityScenario create NewTest1

You can optionally define:

  • which scenario of the NeoLoad project to use
  • the test-settings description
  • the controller and load generator zone to use (defaults to defaultzone)
  • how many load generators to use in the zone (defaults to 1 LG on defaultzone)
  • advanced users with multiple zones that have available resources can use: --zone my_controller_zone --lgs lg_zoneA:2,lg_zoneB:3

To work with an existing test and chain commands against it:

neoload test-settings use NewTest1
neoload test-settings use 4a5e7707-75c0-4106-bbd4-68962ac7f2b3

Upload a NeoLoad project

For basic project examples, see the tests/neoload_projects folder on GitHub.

To upload a NeoLoad project (a ZIP file, a folder or a standalone as-code file) into a test-settings:

Usage: neoload project [OPTIONS] [up|upload|meta] NAME_OR_ID
Help: neoload project --help
neoload project --path tests/neoload_projects/example_1/ upload

You must indicate which test the project should be uploaded to, either by:

  • running this command first:
    neoload test-settings use NewTest1
  • or by appending the name or ID of the test to the project command:
    neoload project --path tests/neoload_projects/example_1/ upload NewTest1

⚠️ If the test has no scenario, or if the configured scenario does not exist in the project, the "Custom" scenario is selected by default (10 VUs for 5 minutes).

To validate the syntax and schema of the as-code project YAML files:

neoload validate sample_projects/example_1/default.yaml

Excluding files from the project upload

If you upload a project directory that contains YAML files which are not NeoLoad as-code (such as .gitlab-ci.yml), you must create a .nlignore file (using the same syntax as .gitignore) to exclude those files from the upload. Otherwise, NeoLoad Web will try to parse them as NeoLoad as-code files and fail.

For details, see the GitLab and Azure pipeline examples.

Run a test

This command runs a test. It produces blocking, unbuffered output describing the execution progress, including current data points. When the test completes, it displays a summary along with the SLAs that passed and failed.

Usage: neoload run [OPTIONS] [NAME_OR_ID]
Help: neoload run --help
neoload run \         # Runs the currently selected test-settings (see neoload status and neoload test-settings use)
     --as-code default.yaml,slas/uat.yaml \
     --scenario scenario1
     --name "MyCustomTestName_${JOB_ID}" \
     --description "A custom test description containing hashtags like #latest or #issueNum"
  • --detached starts the test and returns immediately. Logs are available in NeoLoad Web (follow the URL).
  • --as-code specifies the as-code YAML files to use for the test. They must already be uploaded with the project.
  • --scenario specifies the name of the scenario to run. The scenario must be declared either in an as-code YAML file or in the project; otherwise the NeoLoad Web "Custom" scenario is used (10 VUs for 5 minutes).
  • The test result name and description can be customized to include CI-specific details (e.g. CI job, build number, etc.).
  • Reservations can be used with either a reservation ID, or a reservation duration combined with a number of virtual users.

When running in interactive console mode, the NeoLoad CLI automatically opens your system's default browser to display the live test results.
Pressing Ctrl+C causes the CLI to attempt to stop the test gracefully.

Stop a running test

neoload stop             # Sends the stop signal to the test and waits until it ends.

CheckVU an as-code project

This command runs a CheckVU on an as-code project: it executes a single virtual user to verify that the project runs. It is meant to support fast iteration on as-code projects (generate -> checkvu -> fix).

It delegates to a standalone headless CheckVU JAR and streams the JAR's output and exit code directly.

Usage: neoload checkvu [OPTIONS] PROJECT_FILE
Help: neoload checkvu --help
neoload checkvu default.yaml
neoload checkvu -u myUser default.yaml
  • PROJECT_FILE is a path to an as-code yaml file. The CLI validates it against the as-code schema first (same as neoload validate), using -s, --as-code-schema to override the default schema.
  • --play-think-time plays think times defined on pages and delays marked as think time. Disabled by default (same as the CheckVU advanced setting).
  • -e, --engine-jar, --jar <path-or-url> skips the JAR resolution below and runs a local patched file (hotfix) or an explicit download URL. If omitted: reuse the single cached JAR if one exists (no network call); otherwise detect the OS, call redirect.php (version=latest), follow the 302 to files.tricentis.com, and cache the JAR under the filename from the final Content-Disposition (e.g. neoload-checkvu-cli-2026.3.0-linux.jar). Clear the cache directory to force a fresh download after a new CheckVU release.
  • -j, --java selects the java executable; by default JAVA_HOME/bin/java then java on the PATH. Java 21 is required and verified before running (other major versions such as 25 are rejected). The JAR is launched with -XX:TieredStopAtLevel=1 -Xms256m -Xmx512m -XX:+UseSerialGC -XX:+ExitOnOutOfMemoryError -XX:-UseBASE64Intrinsics to keep startup short and mitigate CVE-2026-114938 (Java4Shell), and JAVA_TOOL_OPTIONS is emptied for that process so these options always apply and do not reach the Load Generator it spawns. Use a JDK rather than a JRE: the JDK provides jarsigner, which the CLI uses to check that the JAR is made by Tricentis. With a JRE the command stops with an error, unless you bypass the check using --unsafe-skip-jar-verification
  • -o, --output <path> sets the directory that receives checkvu-result.json and the checkvu-content/ request and response dump. When omitted, nothing is written to disk and only the console output is produced. Relative paths resolve from the current directory, not from PROJECT_FILE. The dump is not redacted, so treat it as confidential.
  • -w, --work-dir <path> sets the directory used for engine files and logs. Defaults to a temporary directory deleted afterwards unless --keep-temp-work-dir is set; a directory you supply yourself is never deleted.
  • --app-proxy, --app-proxy-username and --app-proxy-bypass configure the proxy used for application traffic. The proxy password is set with CHECKVU_CLI_APP_PROXY_PASSWORD environment variable instead so it never shows up in the process list or CI logs.
  • --controller-properties and --load-generator-properties are advanced options to merge a .properties file into the JAR's embedded controller.properties / agent.properties. When CheckVU starts after neoload login, it reuses the saved URL and token through a temporary [Web] overlay: SaaS keys when the saved URL is the default SaaS API, and on-premise keys for any other URL. Those login keys win over the same keys in an explicit overlay. The temporary overlay is deleted after the run. If --work-dir or --keep-temp-work-dir retains the engine work directory, its merged conf/controller.properties also remains and contains the token in clear text; treat that directory as confidential.

Reporting

The NeoLoad CLI provides basic support for viewing and exporting test results.

View results

Usage: neoload test-results [OPTIONS] [[ls|summary|junitsla|put|patch|delete|use]] [NAME]
Help: neoload test-results --help
neoload test-results ls                 # Lists test results
neoload test-results use                # Remembers the test result you want to work on.
neoload test-results summary            # JSON result summary, including SLAs
neoload test-results junitsla           # Outputs the summary as a JUnit XML file

Test metadata such as name, description, and status can be modified after the test is complete.

To filter test results by project, scenario, or status:

neoload test-results --filter "project=MyProject;scenario=fullTest" ls
neoload test-results --filter "status=TERMINATED|qualityStatus=FAILED" ls

NOTE: you can use either a semicolon or a pipe as the separator, but not both in the same filter.

To select a specific test result so that subsequent commands can be chained against it:

neoload test-results use 4a5e7707-75c0-4106-bbd4-68962ac7f2b3

Detailed logs and results are available on NeoLoad Web. To get the URL of the current result:

neoload logs-url                        # The URL of the test in NeoLoad Web

The test-results vs. report subcommands

The test-results subcommand is intended for direct operational queries against high-level API data.

The report subcommand is intended to simplify common data exporting needs and to provide templating capabilities over a standard, correlated data model. Unlike test-results, the report subcommand can be used to both generate and transform test result data.

⚠️ The report subcommand can be slow (up to several hours) on results that contain many transactions or monitors.

Exporting Transaction CSV data

Usage: neoload report [OPTIONS] [NAME]
Help: neoload report --help
neoload report --template builtin:transactions-csv "test_result_name_or_id" > temp.csv

Filtering export data by timespan

In many load tests, the ramp-up and spin-down periods are not relevant to aggregate statistics. For example, while a system is warming up, it may produce higher-than-expected latencies until a steady state is reached.

The NeoLoad CLI therefore lets you export specific time ranges by providing a timespan filter.

neoload report --template builtin:transactions-csv --filter "timespan=5m-95%"
neoload report --template builtin:transactions-csv --filter "timespan=15%"
neoload report --template builtin:transactions-csv --filter "timespan=-90%"

The timespan format is [Time]-[Time], where each [Time] is either a human-readable duration or a percentage of the total test duration.

The human-readable duration format combines hours, minutes, and seconds, for example 1h5m30s or just 5m.

Omitting the end [Time] filters the results from the specified time to the end of the test.

Similarly, omitting the start [Time] filters the results from the beginning of the test to the specified end time.

Filtering export data by element

It is often useful to narrow analysis and statistics down to a specific group of activities, such as login processes across multiple workflows (user paths) or other key business transactions.

The NeoLoad CLI therefore lets you export specific transactions whose name, parent, or user path name matches a given value or pattern.

neoload report --template builtin:transactions-csv --filter "elements=Login"

You can filter to specific transactions or requests by passing elements followed by a pipe-delimited list of element GUIDs, full names, or partial name matches. The values can also be Python-compatible regular expressions.

Combining timespan and element filters

neoload report --template builtin:transactions-csv --filter "timespan=50%-95%;elements=AddToCart"

The timespan and elements filters can be combined to compute statistics for specific elements within a precise portion of the test. In the example above, the report includes elements that contain AddToCart in their name, user path, or parent element, and the aggregates are calculated from halfway through the test to almost the very end.

Exporting all test data and using custom templates

If you want to use multiple templates to create separate output files for the same test data, dump the test result data first using the standard JSON schema:

neoload report --out-file ~/Downloads/temp.json

NOTE: by default, this queries all entity data for the test results and will trigger multiple API calls, depending on the structure of the user paths and monitoring data in the test result set.

You can then produce multiple output files from a single data snapshot:

neoload report --json-in ~/Downloads/temp.json \
               --template builtin:transactions-csv \
               --out-file ~/Downloads/temp.csv

neoload report --json-in ~/Downloads/temp.json \
               --template /path/to/a/jinja/template.j2 \
               --out-file ~/Downloads/temp.html

NOTE: built-in reports produce a reduced-scope JSON data model and are therefore faster than exporting all test data for various templates and output formats.

Working with large result sets

In the context of the CLI, a "large result set" means several hundred transactions, with several load generators, running for several hours.

The report subcommand retrieves a large amount of data from the NeoLoad Web API and is not recommended for large result sets, as it may take several hours to complete and can fail.

The report subcommand fetches all the values and timeseries points for every statistic from the NeoLoad Web API, for each transaction and monitor.
It makes 2 API calls per transaction and 1 API call per monitor. Up to 10 calls run in parallel (configurable via the NL_MAX_WORKERS environment variable).
On NeoLoad Web SaaS, the rate limit of 300 calls per minute may be reached, in which case the CLI will adapt and slow down accordingly.

To see which NeoLoad Web API calls are made, set the CLI log level to debug: neoload --debug report.

View zones

neoload zones --human
Help: neoload zones --help

Displays a human-readable list of all static and dynamic zones registered in NeoLoad Web, along with the resources attached to each (controllers and load generators).

Create local Docker infrastructure to run a test [EXPERIMENTAL]

WARNING: Docker features are not officially supported by Tricentis as they rely heavily on your local Docker setup and environment. This command is intended only for local/dev test scenarios, to simplify infrastructure requirements.

In certain environments, such as a local development workstation or a Docker-in-Docker CI build node, it is useful to "bring your own infrastructure". In other words, when no controller and load generators are already available in a zone, you can spin them up with Docker before the test starts. Here is an all-in-one example:

neoload docker install

neoload login $NLW_TOKEN \
        test-settings --lgs 2 --scenario sanityScenario create NewTest1 \
        project --path tests/neoload_projects/example_1 upload \
        run

docker install adds an extra step to the run command. This step is triggered when the controller zone defined in the test-settings matches docker.zone (default: defaultzone). When triggered, it launches one controller along with the number of load generators specified in the test-settings, inside docker.zone. The containers are removed at the end of the test.

You can also launch the Docker containers manually with neoload docker up and remove them with neoload docker down. In this case, the number of controllers and load generators is taken from docker.controller.default_count (default: 1) and docker.lg.default_count (default: 2) respectively.

Usage: neoload docker [OPTIONS] [up|down|clean|forget|install|uninstall|status]
Help: neoload docker --help


neoload docker up / down         # start or delete container depend on configuration
neoload docker install/uninstall # add/remove hooks on run command to up when the controller zone is same and zone is empty. Shut down at the end of test running.
neoload docker forget            # remove container from the launched list. That avoid to be removed with down command.
neoload docker clean             # remove all container created by neoload-cli even if it was forgotten.
neoload docker status            # display configuration and general status.

Options:
  --no-wait  Do not wait for controller and load generator in zones api
  --help     Show this message and exit.

Configuration:
  - docker.controller.image (default:  neotys/neoload-controller:latest)
  - docker.controller.default_count (default: 1)
  - docker.lg.image (default: neotys/neoload-loadgenerator:latest)
  - docker.lg.default_count (default: 2)
  - docker.zone (default: defaultzone)

NOTE: the Docker CLI must be installed on the system for these commands to work. The CLI relies on whatever Docker daemon is configured. In a Docker-in-Docker context, this is detected automatically. On local workstations, installing Docker Desktop or Docker for Mac is sufficient.

CLI configuration

neoload config ls
neoload config set docker.lg.default_count=1
Help: neoload config --help

The configuration lets you customize the CLI's behavior. For now, it is only used by the docker command (see above).

Examples

As-Code Demo Project

Create a starter NeoLoad As-Code YAML project with:

neoload project create DemoWebShop

This scaffolds DemoWebShop/default.yaml from the bundled Demo Web Shop template — no NeoLoad Web project, no manual scenario setup.

Target: Tricentis Demo Web Shop (nopCommerce demo).

The BuyAsGuest user path walks through a typical guest purchase:

  1. Open the shop home page
  2. Browse a product category
  3. Add a product to the cart (quantity randomised per iteration via a variable)
  4. View the cart
  5. Check out as a guest
  6. View product details

It uses two variables (product_id, quantity) and a single population (GuestShoppers)

Run CheckVU against the project:

neoload project create DemoWebShop
neoload checkvu DemoWebShop/default.yaml

Run the full test:

neoload project create DemoWebShop
neoload login $NLW_TOKEN \
     test-settings --zone defaultzone --lgs 1 createorpatch DemoWebShopTest \
     project --path DemoWebShop/default.yaml upload DemoWebShopTest \
     run --scenario DemoWebShop

Continuous Testing Examples

The main goal of the NeoLoad CLI is to standardize how load tests are executed across development, non-prod, and production environments. The instructions above can be run from a contributor workstation, but they can also be easily translated to various continuous build and deployment platforms. Examples are provided for:

NB: when chaining commands, the return code of the whole chain is the return code of the last command. For that reason, you should not chain run with test-results junitsla.

NOTE: when combining NeoLoad projects with YAML-based pipeline declarations, see Excluding files from the project upload to make sure unnecessary artifacts are not included in the upload.

Support for fast-fail based on SLAs

Not every test succeeds. Sometimes environments are down, sometimes third-party services are unexpectedly slow. When such issues can be detected early, you don't want your build pipeline to wait for the full test duration to fail. Applying proper SLAs to your tests lets you monitor errors and latency while the test is running.

Consider the following SLA:

sla_profiles:
- name: geo_3rdparty_sla
  description: Avg Resp Time >=100ms >= 250ms for cached queries
  thresholds:
  - avg-resp-time warn >= 100ms fail >= 250ms per interval
  - error-rate warn >= 5% fail >= 10% per test

To fail the pipeline as soon as either of these thresholds is exceeded beyond a given percentage of the time, you need to:

  • run the test in --detached mode so the test runs asynchronously
  • use the fastfail command to monitor for early SLA violations and stop the test if needed
  • finally, wait for the test results

Run the test in detached mode:

neoload run \
    --detached

Then, immediately afterwards, run the fastfail command:

neoload fastfail --max-failure 25 slas cur

In this example, 25 represents the percentage of evaluations in which the SLA was violated. For instance, if an SLA-protected request was executed 50 times and the SLA failed 10 of those times, that is a 20% failure rate.

Finally, because the test was started in non-blocking mode, you must wait for the final test result:

neoload wait cur

See here for a Jenkins pipeline example.

Troubleshooting

Set debug log level

Use neoload --debug ... to show verbose logs from the neoload-cli.

Windows and non-UTF-8 characters

Windows uses ASCII as the default encoding, but the NeoLoad CLI requires UTF-8.
Before running commands such as neoload report on Windows, you need to set the environment variable set PYTHONUTF8=1.
For more information, see the Windows UTF-8 mode docs and the os module docs. Starting with Python 3.15, this is no longer necessary; see PEP 686 – Make UTF-8 mode default.

Packaging the CLI with CI Runners

Pipeline examples that install and run the NeoLoad CLI on a CI runner live in examples/pipelines:

IDE Integrations

Since NeoLoad 2026.3, the schema version can be declared directly in the as-code YAML file, and the schema can be declared with the $schema attribute. Editors that understand JSON Schema read those attributes and offer validation, completion, and field documentation while you edit the file.

  • Visual Studio Code and Cursor: install the YAML extension from the marketplace.
  • JetBrains IDEs: right-click the directory that contains the YAML files and mark it as Sources Root.

Contributing

See CONTRIBUTING.md for local verification, tests, and the release process.

Metadata

Release files for neoload 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neoload 1.5.0
File Size Uploaded Provenance Actions
neoload-1.5.0.tar.gz 1.2 MB Without provenance Details for neoload-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neoload 1.5.0
File Interpreter ABI Platform Actions
neoload-1.5.0-py3-none-any.whl Python 3 none any Details for neoload-1.5.0-py3-none-any.whl

Total release size: 1.7 MB

Release files / neoload-1.5.0.tar.gz

Download URL neoload-1.5.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
b389658c6c77a538269d58b327a0de30de98c94034fa93cfedb1ffaaaf8a9412
BLAKE2b-256 checksum
How to use checksums
def68fd0f6bdd3d5e81c869424857f72bb70fd499e0a08ab81ab76fe29bf2912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / neoload-1.5.0-py3-none-any.whl

Download URL neoload-1.5.0-py3-none-any.whl
Size 526.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d24524686aa6460dd8bd5c03143307beccb0353d93908538c0e383a37813244
BLAKE2b-256 checksum
How to use checksums
c221222c1d7a21ed999b3b655561de549c411e0850133bbc30bf052a16754b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for neoload 1.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page