Skip to content

A React CLI interface for interacting with Upstash Redis

Notifications You must be signed in to change notification settings

upstash/react-redis-cli

Repository files navigation

React Redis CLI for Upstash Redis

@upstash/react-redis-cli is a React component that provides a CLI interface to interact with Upstash Redis.

Install

Install the component via npm:

$ npm install @upstash/react-redis-cli

Usage

Here's a basic example of how to use the component:

import { RedisCli } from "@upstash/react-redis-cli"

import "@upstash/react-redis-cli/dist/index.css"

export default function Page() {
  return (
    <main style={mainStyle}>
      <RedisCli url={UPSTASH_REDIS_REST_URL} token={UPSTASH_REDIS_REST_TOKEN} />
    </main>
  )
}

const mainStyle = {
  width: "100vw",
  maxWidth: "900px",
  height: "500px",
  margin: "0 auto",
}