Skip to content

pstaender/strapi-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published