Local install lost password

I’ve came across this.

require('/path/to/ghost/core/server/lib/security/password')
  .hash(process.argv[2])
  .then(console.log);

I’m trying to replace core/server/lib/security/password

I’m not seeing core/server/lib/security/password?

Where is this file?
I have DB Browser for SQLite running locally.
I’ve bcrypted a new password and I’ve updated it. But it does not work.

There is an unknown error.

Is there a local log?

The unknown error is not very helpful.
For example in frameworks like Rails, you get a print out of log data that you can use to debug locally.
Is there any similar available in ghost cli?

Is there ANY tooling available locally to help? A ghost console to add new Users, Posts etc… Or some kind of log tailing ability?

Hey @stoplion! :wave:

That file was extracted to the @tryghost/security package, as you can see here: https://github.com/TryGhost/Ghost-Utils/blob/master/packages/security/lib/password.js :slightly_smiling_face:

We also have logging built into Ghost, and the Ghost-CLI docs for it are here: https://ghost.org/docs/api/v3/ghost-cli/log/