newrelic / newrelic-cli

The New Relic Command Line Interface
https://developer.newrelic.com/explore-docs/newrelic-cli
Apache License 2.0
129 stars 70 forks source link

profile uses inconsistent casing for API: adminAPIKey, apiKey #120

Closed zlesnr closed 4 years ago

zlesnr commented 4 years ago

Objective

Clean up the variable casing here. Maintain compatibility with nr1.

zlesnr commented 4 years ago

Currently, we have a ~/.newrelic/config.json and ~/.newrelic/credentials.json that is used by both the nr1 command as well as this newrelic-cli project. We want to ensure that we keep compatibility with the nr1 tool, but I noticed that at some point the casing of the keys in those files was not consistent. Here we should:

The NR1 docs can be found here: https://developer.newrelic.com/build-tools/new-relic-one-applications/cli