Skip to content

eyedea-io/syncano-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

To install the latest version of Syncano REPL run this command:

npm i -g syncano-repl

Or you can quickly use it with:

npx syncano-repl

To start Syncano REPL, go to your project root directory and run:

sr
# or
syncano-repl

This will give you access to interactive editor with initialized @syncano/core available under s variable:

# Get list of classes in current instance
s._class.list()

# Get list of users
s.users.list()

# User any method listed in Syncano Core docs
s.data.posts.where('status', 'draft').list()

Good to know

  • Syncano response will be piped into fx command which makes response interactive. Read docs to learn how to use it.
  • Last response is saved to .syncano-repl-response.json file in directory where Syncano REPL was run.
  • All called commands are saved to .syncano-repl-history file in directory wher Syncano REPL was run.
  • It's recommended to add .syncano-repl-response.json and .syncano-repl-history to .gitignore

About

Play with your Syncano project instance in CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors