@testiumhq/cli
v1.0.14
Published
A CLI tool for recording and managing test cases
Readme
TestiumHQ CLI
The official command-line interface for TestiumHQ. Record, manage, and execute automated tests directly from your terminal.
Installation
Install the CLI globally using npm:
npm install -g @testiumhq/cliRequires Node.js 18 or higher.
Getting Started
Follow these steps to set up TestiumHQ in your project:
1. Initialize Your Project
Run this command in your project's root directory:
testium initThis will create a testiumhq.config.json file and a tests/ directory to store your recorded Playwright scripts.
2. Login to Your Account
Authenticate your CLI with your TestiumHQ account:
testium loginYou will be prompted to enter your API Token, which you can find in the TestiumHQ Dashboard.
3. Start the Local Agent
The agent acts as a bridge between the TestiumHQ Dashboard and your local machine. Start it to enable cloud-to-local test execution:
testium agentOnce running, the Dashboard will detect your machine, allowing you to run and record tests locally.
Usage Commands
| Command | Description |
|---------|-------------|
| testium init | Initialize a new project with configuration |
| testium login | Authenticate with your platform account |
| testium agent | Start the local runner agent (Control Plane) |
| testium sync | Synchronize test cases from the backend |
| testium run | Execute local tests manually |
CI/CD Integration
To run tests in CI environments (GitHub Actions, Jenkins, etc.), use the run command with your project ID:
testium run --projectId <your-project-id>Ensure your TESTIUMHQ_TOKEN environment variable is set in your CI configuration.
Support
For issues, questions, or feedback, please visit our Documentation or contact our support team.
© 2026 TestiumHQ. All rights reserved.
