CLI Reference
Find command categories, shared CLI patterns, and script execution flow for User Story Coverage.
Use this reference for exact CLI syntax, flags, examples, and execution order. Use Installation and first run for the fastest working flow.
What most teams run
Environment variables
Use environment variables to inject secrets and override settings without editing files. Environment variables always override values from settings files.
How overrides work
The scripts load your settings files first.
Then they apply matching environment variables.
Use this when you want to:
keep secrets out of source control
vary values by environment
override one value without copying full config files
Common pattern
Set variables before you run the script:
Platform-specific overrides
Use these tabs when the override set changes by ticket platform.
Use this when you are using Jira.
✅ Prerequisites
Your
settingsfile already works for the shared settings.You know the Jira base URL and authorization value.
Your JQL already returns the target issues.
🚀 Steps
📤 Expected Outcome
The run uses your Jira query and Jira connection overrides instead of the file values.
Use this when you are using Azure DevOps.
✅ Prerequisites
Your
settingsfile already works for the shared settings.You know the Azure DevOps authorization value.
Your WIQL already returns the target work items.
🚀 Steps
📤 Expected Outcome
The run uses your WIQL and Azure DevOps connection overrides instead of the file values.
Reference table
OUTPUT_FOLDER
output_folder
string
Directory for generated reports
SEALIGHTS_API_TOKEN
sealights.api_token
string
SeaLights API authentication token
SEALIGHTS_DOMAIN
sealights.domain
string
SeaLights domain, for example company.sealights.co
SEALIGHTS_COVERAGE_DAYS_BACK
sealights.coverage_days_back
integer
Days to look back for coverage data
SEALIGHTS_REPORT_TIMEOUT_MINUTES
sealights.report_timeout_minutes
integer
Report generation timeout in minutes
SEALIGHTS_USE_REPOSITORY_URL
sealights.use_repository_url
boolean
Use repository URL from SeaLights if available
SEALIGHTS_VERIFY_SSL
sealights.verify_ssl
boolean
Verify SSL certificates
KEY_PATTERN_REGEX
scm.key_pattern_regex
string
Regex to extract ticket IDs
GITHUB_API_URL
scm.github_api_url
string
GitHub API URL
GITHUB_TOKEN
scm.github_token
string
GitHub personal access token
GITHUB_OWNER
scm.github_owner
string
GitHub organization or user
SCM_TYPE
scm.type
string
SCM type: github, gitlab, bitbucket, or ado
SCM_VERIFY_SSL
scm.verify_ssl
boolean
Verify SSL certificates for SCM API calls
SCM_REMOVE_PREFIX_REGEX
scm.remove_prefix_regex
string
Regex to strip from branch names
JIRA_AUTHORIZATION
jira.authorization
string
Jira authorization header value
JIRA_GET_LIST_JQL
jira.jql
string
JQL query to fetch tickets
JIRA_CHILD_LEVELS
jira.child_levels
integer
Number of child levels to traverse
JIRA_BASE_URL
jira.base_url
string
Jira instance base URL
JIRA_API_VERSION
jira.api_version
integer
Jira API version, usually 2 or 3
JIRA_CUSTOM_FIELDS
jira.jira_custom_fields
JSON
Custom field mappings for coverage data
JIRA_EXTRA_TICKET_FIELDS
jira.extra_ticket_fields
JSON array
Additional fields to pull from tickets
JIRA_NOTIFY_USERS
jira.notify_users
boolean
Whether Jira updates should notify users
JIRA_ON_PREM
jira.on_prem
boolean
Update the Jira summary field as plain multi-line text instead of Jira ADF
JIRA_VERIFY_SSL
jira.verify_ssl
boolean
Verify SSL certificates for Jira API calls
JIRA_SUMMARY_RICH_TEMPLATE
jira.summary_rich_template
JSON
Inline template override for jira.jira_custom_fields.summary_rich
ADO_WIQL
ado.wiql
string
WIQL query to fetch work items
ADO_AUTHORIZATION
ado.authorization
string
Azure DevOps authorization header
ADO_ORGANIZATION
ado.organization
string
Azure DevOps organization name
ADO_PROJECT
ado.project
string
Azure DevOps project name
ADO_CHILD_LEVELS
ado.child_levels
integer
Number of child levels to traverse
ADO_EXTRA_TICKET_FIELDS
ado.extra_ticket_fields
JSON array
Additional work item fields
ADO_VERIFY_SSL
ado.verify_ssl
boolean
Verify SSL certificates for Azure DevOps API calls
CONFLUENCE_AUTHORIZATION
confluence.authorization
string
Confluence authorization header
CONFLUENCE_BASE_URL
confluence.base_url
string
Confluence instance URL
CONFLUENCE_SPACE_KEY
confluence.space_key
string
Confluence space key
CONFLUENCE_ANCESTOR_ID
confluence.ancestor_id
string
Parent page ID for reports
CONFLUENCE_NOTE
confluence.note
string
Note text for Confluence pages
CONFLUENCE_EXTRA_SUMMARY_FIELDS
confluence.extra_summary_fields
JSON array
Extra fields for summary table
CONFLUENCE_SUMMARY_PAGE_TITLE
confluence.summary_page_title
string
Title for summary page
CONFLUENCE_DETAILS_PAGE_PREFIX
confluence.details_page_prefix
string
Prefix for detail page titles
CONFLUENCE_ON_PREM
confluence.on_prem
boolean
Use Confluence Server or Data Center APIs instead of Cloud APIs
CONFLUENCE_REPORT_FORMAT
confluence.report_format
JSON
Report format settings
CONFLUENCE_QUALITY_GATE
confluence.quality_gate
JSON
Backward-compatible fallback for top coverage thresholds
CONFLUENCE_VERIFY_SSL
confluence.verify_ssl
boolean
Verify SSL certificates for Confluence API calls
TEST_STAGES
test_stages
JSON array
Test stage definitions
GROUPED_TEST_STAGES
grouped_test_stages
JSON array
Aggregated test stage groups
COVERAGE_APP_LIST
coverage_app_list
JSON array
Apps and branches to get coverage from
REPO_LIST
repo_list
JSON array
Repository configurations
Publication target overrides
Use these overrides when the published destination changes by platform.
JSON values
Use JSON strings for arrays and objects:
CI/CD usage
Use environment variables in CI/CD when you want secure secret injection:
Use Security Considerations for secret handling guidance.
Source Tagging
Use these commands to tag code changes with ticket IDs. Use them when SeaLights auto-tagging is not enabled.
Use
US_SRC_tag_repos_by_github_prs.pyto tag merged pull requests.Use
US_SRC_tag_repos_by_history.pyto tag commit history directly.Use
US_SRC_tag_repos_by_jira_github_prs.pyto start from Jira tickets linked to GitHub PRs.Use the lower-level tagging commands only for direct SeaLights updates.
Use the Report Generation section below after tagging and Troubleshooting when tagging returns no changes or no tickets.
Report Generation
Use these scripts after tagging is complete, or after SeaLights auto-tagging has already associated code changes with tickets.
Use Troubleshooting when reports return no tickets or no coverage.
Use Deployment patterns for runnable workflows.
Use Configuration for queries, app mapping, and test stages.
Publish Analytics
Use these scripts after report data already exists. Most teams run them after US1_RPT_create_report_info_files.py.
Use
US3_RPT_create_confluence_reports.pyto publish pages in Confluence.Use the
US4_RPT_*scripts to publish coverage into Jira or Azure DevOps.Use the delete scripts only when you need to remove published coverage data.

