Start a new topic

User Collection Hook with CLI

The CLI doesn't seem to recognize hooks on the user.

Basically, I want to fill some data in after the user gets created. I can create a hook in the console, but it gets removed when I deploy from the CLI, and refresh doesn't seem to pull it down so I can have it locally.

okay so it looks like this works... you just have to manually create the folder and file.

business-logic/collections/user/onPostSave.js will get put to the right spot when you deploy, but the CLI can't create it for you.
Yes, this is a bug (this also holds for the file collection, by the way). The next version of the CLI will contain a fix.
The 0.3.1 release is [now available](
Login or Signup to post a comment