Skip to content

change orders CLI to accept stdin for ORDER_ID argument #383

Closed
@jreiberkyle

Description

@jreiberkyle

Currently, planet orders group get, download, and cancel CLI commands only accept a UUID for the ORDER_ID argument. Expand this to accept -, which reads from stdin (and ensure that the stdin is a UUID).

Update CLI interface documentation accordingly.

Also document the following use case:

User Story: As a CLI user I would like to create an order, wait for it to be ready to download, then download the order.

$ planet orders create –like order_description.json \
    | jq -r ‘.id’ | planet orders wait - \
    | jq -r ‘.id’ | planet orders download -
<ANSI wait and download status reporting>

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLI/SDK InterfaceUpdate the CLI and SDK to the finalized interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions