Motus.Cli
1.1.0
dotnet tool install --global Motus.Cli --version 1.1.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Motus.Cli --version 1.1.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Motus.Cli&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Motus.Cli --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Motus.Cli
Command-line tool for the Motus browser automation framework. Run tests, record interactions, generate page objects, manage browser installations, inspect traces, and serve the MCP server from your terminal.
Installation
# Global install
dotnet tool install -g Motus.Cli
# Local install (per-project)
dotnet tool install Motus.Cli
# Update
dotnet tool update -g Motus.Cli
Requires .NET 8.0 SDK or later. Run motus install once so a browser is available.
Commands
| Command | Purpose |
|---|---|
motus run |
Discover and execute tests from compiled assemblies |
motus record |
Record browser interactions and emit test code |
motus codegen |
Generate Page Object Model classes from live pages |
motus install |
Download and install a browser |
motus screenshot |
Capture a screenshot of a page |
motus pdf |
Render a page to PDF |
motus trace show |
Open a recorded trace in the viewer |
motus trx show |
Open a TRX result file in the viewer |
motus shard merge |
Merge per-shard result files into one report |
motus check-selectors |
Validate recorded selectors against live pages |
motus mcp |
Run the MCP server for agent clients |
motus update-protocol |
Refresh the bundled CDP protocol definitions |
Run motus <command> --help for the options of any one of them.
Common tasks
# Install a browser, pinned to an exact revision for reproducible CI
motus install
motus install --channel chrome --revision 1421000
# Run a suite, filtered, with four workers
motus run bin/Release/net8.0/MyTests.dll --filter Checkout --workers 4
# Console output plus a JUnit file for CI. The path is part of the value.
motus run bin/Release/net8.0/MyTests.dll --reporter console --reporter junit:results.xml
# Split across four agents, then merge. --expect catches a shard that never ran.
motus run bin/Release/net8.0/MyTests.dll --shard 1/4 --reporter junit:results.shard-1.xml
motus shard merge results.shard-*.xml --output junit:results.xml --expect 4
# Retry a test that lost its browser, and label anything that only passes on a retry
motus run bin/Release/net8.0/MyTests.dll --retries 2 --retry-policy flake --fail-on-flaky
# Collect JS and CSS coverage; repeat the flag for multiple formats
motus run bin/Release/net8.0/MyTests.dll --coverage console --coverage html:./coverage
# Record a session into a test, or generate page objects from a live page
motus record --url https://example.com --output LoginTest.cs
motus codegen https://example.com/login --output ./Pages --namespace MyApp.Pages
# Capture a page
motus screenshot https://example.com --output page.png --full-page
motus pdf https://example.com --output page.pdf --delay 5 --hide-banners
# Register the MCP server with an agent, or point it at a browser already running
claude mcp add motus -- motus mcp
motus mcp --connect http://127.0.0.1:9222
Full reference
Every command, option, default and exit code is documented at motustesting.com/docs/reference/cli.html.
See also the MCP Server guide for the tool catalog, Sharding, Flaky Tests and Quarantine, and Configuration for the settings behind many of these options.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 91 | 9/15/2026 |
| 1.0.15 | 149 | 7/29/2026 |
| 1.0.14 | 128 | 6/10/2026 |
| 1.0.13 | 128 | 6/4/2026 |
| 1.0.12 | 136 | 5/26/2026 |
| 1.0.11 | 1,302 | 5/2/2026 |
| 1.0.10 | 1,310 | 4/21/2026 |
| 1.0.9 | 1,303 | 4/14/2026 |
| 1.0.8 | 1,301 | 4/10/2026 |
| 1.0.7 | 1,312 | 4/5/2026 |
| 1.0.6 | 1,354 | 3/30/2026 |
| 1.0.5 | 1,397 | 3/30/2026 |
| 1.0.4 | 1,383 | 3/30/2026 |
| 1.0.3 | 1,378 | 3/30/2026 |
| 1.0.2 | 1,372 | 3/29/2026 |
| 1.0.1 | 1,389 | 3/29/2026 |