akamai / cli-property-manager

Use this Property Manager CLI to automate Akamai property changes and deployments across many environments.
Apache License 2.0
29 stars 22 forks source link

Global Flag "--accountkey" does not work with cli-property-manager #92

Open nh-neteleven opened 5 months ago

nh-neteleven commented 5 months ago

There is a global flag to specify the Account switch key:

$ akamai help [...] Global Flags: [...] --accountkey value, --account-key value Account switch key [$AKAMAI_EDGERC_ACCOUNT_KEY] [...]

This is unfortunatelly not supported by cli-property-manager:

$ akamai --accountkey F-AB-12453678:1-ABCDE property-manager list-contracts PM CLI Error: 'cli_unknown_option' occurred: Unknown option: '--accountkey'

The global flag does work with other cli commands (e.g. cps)

$ akamai --accountkey F-AB-12453678:1-ABCDE cps list +---------------+-------------------------+------------------+---------------+-----------------------+ | Enrollment ID | Common Name (SAN Count) | Certificate Type | In-Progress | Test on Staging First | +---------------+-------------------------+------------------+---------------+-----------------------+ [...]

For cli-property-manager the option --accountSwitchKey works, but the global option doesn't. So maybe it's possible to simply add an alias to make the global flag --accountkey work.