strapi-repl

0.0.3 • Public • Published

Strapi REPL

Console for your strapi app

Strapi has a built in console (strapi console). However, compared to the built-in console, this repl has the following features:

  • await support
  • .reload reloads your app (helpful in development)
  • only runs a REPL (and doesn't start your webservice as well)

Installation

  $ npm install -g strapi-repl

Run

In any strapi project:

  $ strapi-repl

Example usage

  strapi > await strapi.query('user''users-permissions').findOne()
  {
    username: 'exampleuser',
    …
  }
  strapi > .reload
  reloading... done
  strapi > .exit

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i strapi-repl

Weekly Downloads

23

Version

0.0.3

License

MIT

Unpacked Size

3.06 kB

Total Files

4

Last publish

Collaborators

  • pstaender