Feature idea: flag to select environment

Open
#9 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
cli

Research direction

Start at the polar listen CLI entry point and trace how the environment is selected in the interactive prompt shown in the issue. Check how command-line options are parsed, then verify that polar listen ... --environment sandbox selects the requested environment without requiring the prompt.

Written by the indexing model from the issue text.

Description

Polar doesn't have way to pass the environment with the CLI. For instance polar listen http://localhost:8787/webhooks/polar --environment sandbox.

 polar listen http://localhost:8787/webhooks/polar

  Update available: v1.2.0 → v1.3.0
  Run polar update to update

? Select Environment ›
❯ Sandbox
  Production

Let me know if it's a feature you could be interested with :) I'd be keen to implement it

Dominant language
TypeScript
Stars
13
Forks
14
Avg merge
23h 49m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from polarsource/cli

All issues in polarsource/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.