chargelink scenario
Validate and execute single JSON scenarios.
Reference syntax
usage: chargelink scenario [-h] {run,validate,dry-run} ...
positional arguments:
{run,validate,dry-run}
options:
-h, --help show this help message and exit
Subcommands
Subcommand |
Purpose |
|---|---|
|
Execute one scenario file and write artifacts for the resulting run. |
|
Validate the schema and content of a scenario JSON file. |
|
Resolve a scenario without running the session, useful for authoring and review. |
run
Execute one scenario file and write artifacts for the resulting run.
CLI help
usage: chargelink scenario run [-h] [--artifact-root ARTIFACT_ROOT] scenario
positional arguments:
scenario
options:
-h, --help show this help message and exit
--artifact-root ARTIFACT_ROOT
Production examples
Execute the sample scenario and store its artifacts.
chargelink scenario run 'scenarios/sample_scenario.json' --artifact-root 'artifacts/scenario_runs'
Run the same scenario as part of a pre-release acceptance pass.
chargelink scenario run 'scenarios/sample_scenario.json' --artifact-root 'artifacts/release_smoke/scenario_runs'
validate
Validate the schema and content of a scenario JSON file.
CLI help
usage: chargelink scenario validate [-h] scenario
positional arguments:
scenario
options:
-h, --help show this help message and exit
Production examples
Validate one production input.
chargelink scenario validate 'scenarios/sample_scenario.json'
Validate a second representative input.
chargelink scenario validate 'scenarios/sample_scenario.json'
dry-run
Resolve a scenario without running the session, useful for authoring and review.
CLI help
usage: chargelink scenario dry-run [-h] [--artifact-root ARTIFACT_ROOT]
scenario
positional arguments:
scenario
options:
-h, --help show this help message and exit
--artifact-root ARTIFACT_ROOT
Production examples
Resolve the sample scenario without running it.
chargelink scenario dry-run 'scenarios/sample_scenario.json'
Resolve the sample scenario for release review.
chargelink scenario dry-run 'scenarios/sample_scenario.json' --artifact-root 'artifacts/scenario_preview'