diff --git a/package-lock.json b/package-lock.json index 1796e82..1163da4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "azure-acme-provisioner", - "version": "0.4.4", + "version": "0.4.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "azure-acme-provisioner", - "version": "0.4.4", + "version": "0.4.5", "license": "MIT", "dependencies": { "@azure/arm-authorization": "^9.0.0", diff --git a/package.json b/package.json index f77cfd0..2b32f3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "azure-acme-provisioner", - "version": "0.4.4", + "version": "0.4.5", "author": { "name": "Sławomir Koszewski", "url": "https://github.com/skoszewski" diff --git a/src/cli.ts b/src/cli.ts index 233144a..272ccf1 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -58,6 +58,7 @@ sharedOptions( program .command('run', { isDefault: true }) .description('Scan DNS zones and issue or renew certificates') + .usage('(--keyvault-name | --keyvault-url ) --subscription-id --resource-group --email [options]') .option('--http ', 'Use HTTP-01 challenge on the given port instead of DNS-01') .option('--dry-run', 'Show what would be done without making changes') ).action(async (options: Record) => { @@ -72,6 +73,7 @@ sharedOptions( program .command('scan') .description('List all domains tagged for ACME management') + .usage('--subscription-id --resource-group [options]') .option('--output ', 'Output format: table|json', 'table') ).action(async (options: Record) => { applyOverrides(options); @@ -94,6 +96,7 @@ sharedOptions( program .command('status') .description('Show certificate expiry status for all managed domains') + .usage('(--keyvault-name | --keyvault-url ) --subscription-id --resource-group [options]') .option('--output ', 'Output format: table|json', 'table') ).action(async (options: Record) => { applyOverrides(options); @@ -119,6 +122,7 @@ sharedOptions( program .command('renew ') .description('Force-renew a certificate for a specific domain, bypassing the renewal threshold') + .usage(' (--keyvault-name | --keyvault-url ) --subscription-id --resource-group --email [options]') .option('--http ', 'Use HTTP-01 challenge on the given port instead of DNS-01') ).action(async (domain: string, options: Record) => { applyOverrides(options); @@ -136,6 +140,7 @@ sharedOptions( program .command('assign-role ') .description('Assign Key Vault Certificate User and Secrets User roles to a principal for a domain certificate') + .usage(' --principal-id --principal-type --keyvault-resource-group (--keyvault-name | --keyvault-url ) --subscription-id [options]') .requiredOption('--principal-id ', 'Azure principal ID to assign roles to') .requiredOption('--principal-type ', 'Principal type: User | Group | ServicePrincipal (use ServicePrincipal for managed identities)') .option('--dry-run', 'Show what would be assigned without making changes') @@ -177,6 +182,7 @@ sharedOptions( program .command('download ') .description('Download the PEM bundle (private key + certificate + chain) for a domain') + .usage(' (--keyvault-name | --keyvault-url ) [options]') .option('--output ', 'Write to file instead of stdout') ).action(async (domain: string, options: Record) => { applyOverrides(options);