diff --git a/lib/interface/cli/commands/components/update.cmd.js b/lib/interface/cli/commands/components/update.cmd.js index 1539c0145..6414061cc 100644 --- a/lib/interface/cli/commands/components/update.cmd.js +++ b/lib/interface/cli/commands/components/update.cmd.js @@ -7,13 +7,13 @@ const command = new Command({ parent: componentsRoot, description: 'Update Codefresh CLI components', webDocs: { - category: 'Componenets', + category: 'Components', title: 'Update', }, builder: yargs => yargs .env('CF_ARG_') // this means that every process.env.CF_ARG_* will be passed to argv .option('location', { - describe: 'Override dowload folder location', + describe: 'Override download folder location', }), handler: async (argv) => { console.log('Updating components'); diff --git a/lib/interface/cli/commands/gitops/install.cmd.js b/lib/interface/cli/commands/gitops/install.cmd.js index 79b1fbce6..fd2e21d04 100644 --- a/lib/interface/cli/commands/gitops/install.cmd.js +++ b/lib/interface/cli/commands/gitops/install.cmd.js @@ -79,7 +79,6 @@ const installArgoCmd = new Command({ default: 'https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml', }) .option('set-argo-password', { - required: true, describe: 'set password for admin user of new argocd installation', }), handler: async (argv) => { @@ -99,6 +98,11 @@ const installArgoCmd = new Command({ } = argv; if (provider === 'argocd') { + if (!setArgoPassword) { + console.error('\nMissing required argument: set-argo-password'); + process.exit(1); + } + const result = await installArgocd({ installManifest, kubeNamespace, diff --git a/package.json b/package.json index 07b75bf5d..e2b4e28f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.73.25", + "version": "0.73.26", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,