From 16b03f33533d1144e464826a5a369b16c3ab35b6 Mon Sep 17 00:00:00 2001 From: maryiaCodefresh <146828154+maryiaCodefresh@users.noreply.github.com> Date: Thu, 13 Nov 2025 14:19:43 +0200 Subject: [PATCH 1/2] Add another example of the codefresh run command as requested by the customer zd ticket: https://octopuscd.zendesk.com/agent/tickets/173140 --- lib/interface/cli/commands/pipeline/run.cmd.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/interface/cli/commands/pipeline/run.cmd.js b/lib/interface/cli/commands/pipeline/run.cmd.js index 43acd3723..8b29f3a86 100644 --- a/lib/interface/cli/commands/pipeline/run.cmd.js +++ b/lib/interface/cli/commands/pipeline/run.cmd.js @@ -133,6 +133,7 @@ const run = new Command({ .example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master -v key1=value1 -v key2=value2', 'Setting variables through the command') .example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master --var-file ./var_file.yml', 'Settings variables through a yml file') .example('codefresh run PIPELINE_ID | PIPELINE_NAME -b=master --context context', 'Inject contexts to the pipeline execution') + .example('codefresh run PIPELINE_ID | PIPELINE_NAME --memory '2000' --cpu 547 --disk 2', 'Specify resources during pipeline run') .example('codefresh run PIPELINE_ID | PIPELINE_NAME --skip step1 step2 step3', 'Skip specific steps'); crudFilenameOption(yargs, { From a05d0b5994f3794e0c146980b643e3d4a62dfdaf Mon Sep 17 00:00:00 2001 From: maryiaCodefresh <146828154+maryiaCodefresh@users.noreply.github.com> Date: Thu, 13 Nov 2025 17:53:01 +0200 Subject: [PATCH 2/2] Add --memory, --cpu, --disk units to the codefresh run command --- lib/interface/cli/commands/pipeline/run.cmd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/interface/cli/commands/pipeline/run.cmd.js b/lib/interface/cli/commands/pipeline/run.cmd.js index 8b29f3a86..28b738a8f 100644 --- a/lib/interface/cli/commands/pipeline/run.cmd.js +++ b/lib/interface/cli/commands/pipeline/run.cmd.js @@ -35,15 +35,15 @@ const run = new Command({ describe: 'Pipeline name', }) .option('memory', { - describe: 'Mention machine memory sizes during pipeline run', + describe: 'Mention machine memory sizes during pipeline run (value in Mi)', coerce: value => `${value}Mi`, }) .option('cpu', { - describe: 'Mention machine cpu sizes during pipeline run', + describe: 'Mention machine cpu sizes during pipeline run (value in m)', coerce: value => `${value}m`, }) .option('disk', { - describe: 'Mention machine disk space sizes during pipeline run', + describe: 'Mention machine disk space sizes during pipeline run (value in Gi)', coerce: value => `${value}Gi`, }) .option('pack-name', {