Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nh-neteleven opened this issue Apr 9, 2024 · 0 comments
Open

Comments

@nh-neteleven
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant