Skip to content

Commit ef53d61

Browse files
committed
Add hosting and collection_id parameters to planet orders create command
1 parent db7ff57 commit ef53d61

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

planet/cli/orders.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,18 @@ async def download(ctx, order_id, overwrite, directory, checksum):
206206
@translate_exceptions
207207
@coro
208208
@click.argument("request", type=types.JSON())
209+
@click.option(
210+
"--hosting",
211+
type=click.Choice([
212+
"sentinel_hub",
213+
]),
214+
default=None,
215+
help='Hosting type. Currently, only "sentinel_hub" is supported.',
216+
)
217+
@click.option("--collection-id",
218+
default=None,
219+
help='Collection ID for Sentinel Hub hosting. '
220+
'If omitted, a new collection will be created.')
209221
@pretty
210222
async def create(ctx, request, pretty, **kwargs):
211223
"""Create an order.

0 commit comments

Comments
 (0)