TestMesh
CLI

Other Commands

Additional CLI commands for project management and integration.

These commands handle project setup, server integration, reporting, and extensibility.

Command Reference

graph

Scan repositories and interact with the system graph. See the System Graph reference for full documentation.

testmesh graph scan .
testmesh graph status
testmesh graph coverage

init

Initialize a new TestMesh project in the current directory. Creates a testmesh.yaml config file and an examples/ directory with a starter flow.

testmesh init

login

Authenticate with a remote TestMesh API server. Saves credentials to the local CLI config so subsequent commands can push/pull flows and execution results to the server.

testmesh login --server https://testmesh.example.com

You will be prompted for your email and password, or you can pass an API token:

testmesh login --server https://testmesh.example.com --token <api-token>

report

View execution reports for flows that have been run against a connected TestMesh server.

# List recent executions
testmesh report list

# View a specific execution
testmesh report view <execution-id>

# Export a report
testmesh report export <execution-id> --format html --output ./report.html

import

Import flows from external formats into TestMesh YAML.

# Import from a Postman collection
testmesh import --format postman --input ./collection.json --output ./flows/

# Import from an OpenAPI spec
testmesh import --format openapi --input ./openapi.yaml --output ./flows/

Imported flows are written as .yaml files to the output directory. Review and adjust them before running, as imports may require manual tuning of assertions.

export

Export TestMesh flows to other formats.

# Export to Postman collection
testmesh export --format postman --input ./flows/ --output ./collection.json

# Export to OpenAPI spec
testmesh export --format openapi --input ./flows/ --output ./openapi.yaml

config

Manage CLI configuration (server URL, default API keys, output preferences).

# Show current config
testmesh config show

# Set a value
testmesh config set server.url https://testmesh.example.com

# Reset to defaults
testmesh config reset

Config is stored at ~/.testmesh/config.yaml.

schedule

Manage scheduled flow runs on a connected TestMesh server.

# List schedules
testmesh schedule list

# Create a schedule (cron expression)
testmesh schedule create --flow ./flows/smoke.yaml --cron "0 * * * *"

# Delete a schedule
testmesh schedule delete <schedule-id>

# Pause/resume a schedule
testmesh schedule pause <schedule-id>
testmesh schedule resume <schedule-id>

Schedules require an active connection to a TestMesh server. Run testmesh login first.

plugin

Install and manage CLI plugins that add new action types or integrations.

# List installed plugins
testmesh plugin list

# Install a plugin
testmesh plugin install <plugin-name>

# Remove a plugin
testmesh plugin remove <plugin-name>

mcp

Start the TestMesh MCP (Model Context Protocol) server, which exposes flow management and execution tools to AI agents and editors that support MCP.

testmesh mcp

The MCP server runs on stdio by default and exposes tools such as run_flow, validate_flow, generate_flow, and list_flows to any connected MCP client.

# Start with a specific workspace directory
testmesh mcp --workspace ./flows/

The MCP server is what enables TestMesh integration in Claude, Cursor, and other AI-powered editors. Configure your editor to launch testmesh mcp as an MCP server.

Summary Table

CommandRequires ServerDescription
graphNoScan repos and manage system graph
initNoCreate a new project skeleton
loginYesAuthenticate with a TestMesh server
reportYesView and export execution reports
importNoImport from Postman / OpenAPI
exportNoExport to Postman / OpenAPI
configNoManage CLI configuration
scheduleYesManage cron-based scheduled runs
pluginNoInstall and manage plugins
mcpNoStart MCP server for AI integration

On this page