CLI Reference

Spark provides three commands. Most of the time, you'll only use spark run.

spark init                   # Scaffold example configuration
spark run [path] [flags]     # Run tests
spark pull [path] [flags]    # Pre-pull Docker images

spark init

Scaffold an example configuration and test file to get started quickly.

spark run

The main command. Run tests locally or in the cloud with filtering, reports, and parallelism.

spark pull

Pre-pull Docker images from your test files. Speeds up first runs in CI.

Environment Variables

Configure cloud tokens, API URLs, and YAML variable expansion.