diff --git a/bin/cli-users b/bin/cli-users index cfcbcd13a..a01980a20 100755 --- a/bin/cli-users +++ b/bin/cli-users @@ -287,8 +287,15 @@ async function createUser() { const { email, username, password, role } = answers; + const ctx = Context.forSystem(); + // Create the user. - const user = await UsersService.createLocalUser(email, password, username); + const user = await UsersService.createLocalUser( + ctx, + email, + password, + username + ); // Set the role. await UsersService.setRole(user.id, role);