Set up the CLI, let an AI assistant discover the allowed commands, run dry-runs first,
then write to Xray only when the result has been checked. Plain English, no Python
packaging required.
You don't need to understand Python packaging. You need Python 3.11 or newer, Git, and
access to the repository or release package.
Install from GitHub
# Install the command from GitHub.$python-m pip install"git+https://github.com/reignonu13/agent-jiraXray-cli.git"$jiraxray-cli--help
Install from a checkout
# Use this when working from the repo.$gitclonehttps://github.com/reignonu13/agent-jiraXray-cli.git$cdagent-jiraXray-cli$python-m pip install--useruv$uvsync$uvrunjiraxray-cli--help
02
Connect
Connect Jira and Xray without storing secrets in files.
The CLI reads secrets from environment variables. A project profile can store safe
defaults, but API tokens and client secrets stay outside the repo.
# Local check first, live connection check second.$jiraxray-clidiagnose--json$jiraxray-clidiagnose--live--json
03
AI pattern
Use the AI tool in a controlled pattern.
Treat the AI as a helper that plans and prepares the work. The CLI is the controlled
tool layer. The test engineer still reviews the output before any writes happen.
01
Discover
The AI runs commands --json to learn the allowed actions.
02
Check
It runs diagnose --json to confirm setup before doing work.
03
Dry-run
Suites are run with --dry-run first.
04
Review
The engineer checks the JSON, Markdown report, or planned steps.
05
Run
Only then does someone run the command that writes to Xray.
Habit to keep
Good AI usage means the AI can suggest and prepare, but the CLI keeps the shape of the work tight: named commands, known inputs, JSON output, dry-runs, and explicit writes. It works from GitHub Copilot, Claude, Codex, or any assistant that can run a terminal command.
04
Existing automation
Put it beside the automation suite you already have.
The CLI is not the test runner. Keep using the runner your team already trusts. The CLI
gives that runner — and any AI helper — a controlled way to describe the test work in Xray.
01
Test source
Manual test library, Playwright, pytest, Cypress, Postman, Robot, or another suite.
02
Team mapping
Decide which scenarios are manual-only, automated, or both.
03
CLI suite
Capture the Xray update steps in .jiraxray-cli/workflows/*.yaml.
04
Dry-run
Show the planned Xray work before changing tests, plans, executions, or results.
05
Update Xray
Run the approved command and keep the output for the release record.
Example suite file
Stored in your repo, reviewed in PRs, run by humans, AI, or CI.
# .jiraxray-cli/workflows/regression-sync.yamlname:regression-syncdescription:Keep regression tests and results aligned in Xray.inputs:project_key:type:stringrequired:truesteps: - name:sync reviewed manual testscommand:workflow sync-libraryargs:source:tests/manual-regression.yamlproject_key:${project_key}dry_run:true
05
Service fit
Know where the CLI sits before using it.
Jira and Xray are the products testers use every day. The CLI is the controlled bridge
that lets a terminal, an automation job, or an AI assistant work alongside them.
Jira Cloud
Project and issue context: stories, bugs, plans, executions, and team process.
Xray Cloud
Test management on top of Jira: tests, runs, evidence, results, sets, and plans.
jiraxray-cli
The safe command layer for manual users, existing suites, and AI assistants.
06
Scenario alignment
How manual and automated scenarios line up in Xray.
The suite becomes the shared shape of the work. Manual tests, automated results,
executions, and evidence all point back to the same test intent.
Manual scenario path
Use this when a test engineer owns the scenario wording and expected result.
# Check the manual test library first.$jiraxray-cliworkflow sync-library--sourcetests.yaml--project-keyQA--dry-run# Run the sync after review.$jiraxray-cliworkflow sync-library--sourcetests.yaml--project-keyQA--json
Automated scenario path
Use this when the automation has produced a result file for Xray.
# Validate the automation result file before importing.$jiraxray-cliworkflow validate-import--formatjunit--pathreport.xml$jiraxray-cliresults import--formatjunit--pathreport.xml--json
Same plan, same view
Manual evidence and automated result files both land in Xray, against the same tests, in the same execution view. The CLI keeps that alignment without forcing every test to be automated.
07
Examples
Common work, shown as real commands.
Examples a test engineer should be able to copy, change, and run. Each block defaults to
dry-run or read-only behaviour, so it's safe to try before committing.
Inspect a Zephyr export
Produces a local report for review. Does not write to Xray.