Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egoist/prisma-repl
REPL for Prisma databases.
https://github.com/egoist/prisma-repl
Last synced: 15 days ago
JSON representation
REPL for Prisma databases.
- Host: GitHub
- URL: https://github.com/egoist/prisma-repl
- Owner: egoist
- License: mit
- Created: 2021-06-03T11:25:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T13:40:22.000Z (7 months ago)
- Last Synced: 2024-10-23T00:36:13.989Z (22 days ago)
- Language: TypeScript
- Size: 102 KB
- Stars: 214
- Watchers: 3
- Forks: 4
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - prisma-repl
README
**💛 You can help the author become a full-time open-source maintainer by [sponsoring him on GitHub](https://github.com/sponsors/egoist).**
---
# prisma-repl
[![npm version](https://badgen.net/npm/v/prisma-repl)](https://npm.im/prisma-repl) [![npm downloads](https://badgen.net/npm/dm/prisma-repl)](https://npm.im/prisma-repl)
A REPL for [Prisma](https://www.prisma.io/).
## Install
```bash
npm i -g prisma-repl
# Or install locally
npm i -D prisma-repl
```## Usage
Make sure you're inside a valid Prisma project, i.e. the directory where you ran `prisma init` or other Prisma commands.
```bash
$ prisma-repl
```The Prisma client instance is available as `db`:
After regenerating the Prisma client, type `.reload` in the REPL to reload it.
## Running commands in the REPL
You can directly run commands in the REPL using `sh` tag:
For Prisma commands, you can use use the `prisma` shorthand:
The Prisma client is automatically reloaded in the REPL when you run commands like `prisma db push` or `prisma generate`.
## Help
```
prisma-repl/0.0.0Usage:
$ prisma-repl [options]Options:
--url Override database URL
--client The output directory for your prisma client (default: node_modules/@prisma/client)
--verbose Show all Prisma logs
-v, --version Display version number
-h, --help Display this message
```## Sponsors
[![sponsors](https://sponsors-images.egoist.sh/sponsors.svg)](https://github.com/sponsors/egoist)
## License
MIT © [EGOIST](https://github.com/sponsors/egoist)