const persistence = require("../core/persistence/persistence"); module.exports.description = "Show the keys we have instantiate" module.exports.builder = (yargs) => { } module.exports.handler = (argv) => { console.log("Show the keys we have instantiate"); persistence().LoadDB() .then(db => { db.Key.findAll() .then(keys => { console.log("Keys: ", keys.map(k => k.name)); }) }) }