Skip to content

DX-2866: add upstash start-redis command - #15

Open
CahidArda wants to merge 2 commits into
mainfrom
DX-2866-start-redis
Open

DX-2866: add upstash start-redis command#15
CahidArda wants to merge 2 commits into
mainfrom
DX-2866-start-redis

Conversation

@CahidArda

Copy link
Copy Markdown
Collaborator

Adds an unauthenticated top-level command that POSTs to https://upstash.com/start-redis and prints the returned markdown (credentials + quickstart). --id re-fetches an earlier database via the Idempotency-Key header.

Also surfaces it from the README and from upstash redis create --help.

Adds an unauthenticated top-level command that POSTs to
https://upstash.com/start-redis and prints the returned markdown
(credentials + quickstart). `--id` re-fetches an earlier database via the
Idempotency-Key header.

Also surfaces it from the README and from `upstash redis create --help`.
@linear-code

linear-code Bot commented Jul 27, 2026

Copy link
Copy Markdown

DX-2866

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new top-level upstash start-redis command that provisions a temporary Redis instance without requiring prior authentication, and surfaces the feature in help text and README so users discover it quickly.

Changes:

  • Introduces start-redis command that POSTs to https://upstash.com/start-redis, optionally sending Idempotency-Key via --id, and prints the returned markdown.
  • Registers the new command in the CLI entrypoint.
  • Adds unit tests plus README / help-text updates pointing users to the new workflow.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/commands/start-redis.ts New command implementation for unauthenticated temporary Redis provisioning and markdown output.
src/cli.ts Wires registerStartRedis into the top-level CLI.
src/commands/redis/create.ts Updates redis create help text to point users to start-redis for the no-account flow.
README.md Documents the new no-account path and updates “Quick examples” to include start-redis.
tests/unit/start-redis.test.ts Adds unit coverage for request behavior, --id header handling, and error propagation.
Comments suppressed due to low confidence (1)

README.md:42

  • “All output is JSON” isn’t accurate: login/logout print plain text, and start-redis prints markdown. Since this is user-facing behavior, the README should list all exceptions to avoid breaking automation assumptions.
All output is JSON, so you can pipe to `jq` (the one exception is `start-redis`, which prints markdown). Use `--dry-run` to preview destructive commands.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Comment thread src/commands/start-redis.ts
Comment thread src/commands/redis/create.ts
- Wrap fetch/network failures in plainError so this command's errors are
  plain text like its markdown output, not the JSON error path.
- Drop markdown backticks from the 'redis create' description; commander
  help is plain text.
- Correct the README claims about which commands are unauthenticated and
  which print JSON — login/logout are also unauthenticated and print
  plain text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants