Skip to content

CLI Console

Tyler Swayne edited this page Apr 17, 2022 · 1 revision

Nexi has tooling to provide rails console like functionality. In your project, running ./node_modules/.bin/nexi-cli will start the node repl with the application context wired up, giving you access to everything outlined here. This can be a really useful utility for jumping into a production server or container and kicking the tires.

> context.models.user.findOne({ email: 'username@domain.com' }).then(user => console.log(user))
Clone this wiki locally