Skip to content

Commit 0c80534

Browse files
authored
Environment variable credentials above secret file credentials (#589)
Like, for example, AWS CLI and v1 of the Python client. Resolves #574
1 parent 7958394 commit 0c80534

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

planet/cli/data.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from contextlib import asynccontextmanager
66

77
import click
8-
import planet
98
from planet import DataClient, Session
109

1110
from .cmds import coro, translate_exceptions
@@ -31,7 +30,7 @@ async def data_client(ctx):
3130
help='Assign custom base Orders API URL.')
3231
def data(ctx, base_url):
3332
'''Commands for interacting with the Orders API'''
34-
ctx.obj['AUTH'] = planet.Auth.from_file()
33+
ctx.obj['AUTH'] = None
3534
ctx.obj['BASE_URL'] = base_url
3635

3736

planet/cli/orders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async def orders_client(ctx):
4545
help='Assign custom base Orders API URL.')
4646
def orders(ctx, base_url):
4747
'''Commands for interacting with the Orders API'''
48-
ctx.obj['AUTH'] = planet.Auth.from_file()
48+
ctx.obj['AUTH'] = None
4949
ctx.obj['BASE_URL'] = base_url
5050

5151

0 commit comments

Comments
 (0)