npm.io
0.0.3 • Published 6 years agoCLI

strapi-repl

Licence
MIT
Version
0.0.3
Deps
2
Size
3 kB
Vulns
0
Weekly
0
Stars
2

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

Keywords