planet-client-python icon indicating copy to clipboard operation
planet-client-python copied to clipboard

update CLI auth interface

Open jreiberkyle opened this issue 3 years ago • 1 comments

Update the CLI auth interface to the following:

init -> login-key

Usage: planet auth login-key

  Obtain and store api key authorization credentials

Options:
  --help          Show this message and exit.

Usage Examples

value -> print-key

Usage: planet auth print-key [OPTIONS]

  Print the stored api key

  Returns nothing if no api key is stored.

Options:
  --help  Show this message and exit.
Usage Examples
User Story: As a CLI user I would like to get the api key for passing into a docker container.

Base usage:

> planet auth print-key
<api key>

Setting a variable:

> export PL_API_KEY=$(planet auth print-key)

jreiberkyle avatar Feb 25 '22 00:02 jreiberkyle

Note that the docs now need to be updated when this merges.

cholmes avatar Jul 20 '22 19:07 cholmes