Skip to content

CLI Commands

Simple reference for all ZeniTest command line options.

Run tests, manage API keys, and view reports from your terminal.


Saves your ZeniTest API key to your local machine:

Terminal window
zenitest auth <your_api_key>

If you leave out the key, the CLI will ask you to type it in. Your key is stored at ~/.zenitest/config.json.


Runs your test cases:

Terminal window
# Run all tests in the zenitests/ folder
zenitest run
Option Flag Description Default
Platform --platform, -t Filter by web, ios, or android All platforms
Local URL --local Run web tests against the local URL from config —
Prod URL --prod Run web tests against the production URL from config ✓ (default)
Environment --env, -e Target environment: local or prod prod
Custom API --api-url Custom API server base URL —
Browser --browser Web browser: chromium, chrome, firefox, safari chromium
Mobile App --bundle, -b Path to .ipa, .app, or .apk file From config
Device --device Target device or simulator name From config
Parallel --parallel, -p Number of tests to run at the same time 5
Test File --file, -f Run a specific test by filename —
Custom Folder --dir, -d Custom path to test files zenitests

Run against production URL (default):

Terminal window
zenitest run --platform web --prod

Run against local development server:

Terminal window
zenitest run --platform web --local

Use a specific browser:

Terminal window
zenitest run --platform web --browser firefox

Run Android tests with an APK:

Terminal window
zenitest run --platform android --bundle ./build/app-debug.apk

Run iOS tests with an IPA on a specific device:

Terminal window
zenitest run --platform ios --bundle ./build/Runner.ipa --device "iPhone 15 Pro"

By file path:

Terminal window
zenitest run zenitests/web/tc_login.yaml

By test ID (the CLI searches all platform folders):

Terminal window
zenitest run tc_login

Shows the summary and step breakdown of a previous test run:

Formatted terminal output:

Terminal window
zenitest report <run_number>

Machine-readable JSON output:

Terminal window
zenitest report <run_number> --json

Example:

Terminal window
zenitest report 14
Terminal window
zenitest report 14 --json