Skip to content

Show the identifiers the CLI needs on the environment page #433

Done

Description

@samuelmbabhazi

Problem

shipkeep deploy, status, rollback and secrets need --org, --project and --env, as identifiers (UUIDv7), or SHIPKEEP_ORG, SHIPKEEP_PROJECT and SHIPKEEP_ENV. The web UI shows none of them. Today the only place to find them is the browser's address bar on the environment's page (/orgs/<organization>/projects/<project>/environments/<environment>), and the documentation site (#430) has to say so.

Proposal

On the environment's page, a "Use from the CLI" block with:

  • the three identifiers, each with a copy button;
  • the matching export SHIPKEEP_ORG=… SHIPKEEP_PROJECT=… SHIPKEEP_ENV=… line;
  • a link to the API token page, which preselects this environment.

Alternatively, or in addition, the CLI could accept slugs (--project storefront --env production) and resolve them through the API.

Acceptance

A new user goes from the environment's page to a working shipkeep deploy without reading a URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions