@upstash/react-cli
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

@upstash/react-cli

CLI for Upstash Redis

Upstash Redis CLI

1. Install

$ npm install @upstash/react-cli

2. Add a client component in your app:

// /app/components/cli.tsx

"use client"
import { RedisCli } from "@upstash/react-cli";

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


<div
        style={{
          width: "100%",
          height: "100%",
          maxWidth: "48rem",
          maxHeight: "32rem",
        }}
      >
  <RedisCli url="UPSTASH_REDIS_REST_URL" token="UPSTASH_REDIS_REST_TOKEN" />;
</div>

With Tailwind CSS

If you already have a tailwindcss toolchain, you can omit the css import and add the library to your tailwind config file:

// tailwind.config.js

module.exports = {
  content: [
    // ...
    "./node_modules/@upstash/react-cli/**/*.js", // <--  add this line
  ],
  //...
}

Readme

Keywords

none

Package Sidebar

Install

npm i @upstash/react-cli

Weekly Downloads

54

Version

1.0.13

License

MIT

Unpacked Size

15.5 kB

Total Files

6

Last publish

Collaborators

  • mdogan
  • buggyhunter
  • cahidarda
  • upstashnpm
  • joshtc