0.0.3 • Published 4 years ago

strapi-repl v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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