diff --git a/api/src/cli/commands/roles/create.ts b/api/src/cli/commands/roles/create.ts index 27b46ac8c4..910b2d860f 100644 --- a/api/src/cli/commands/roles/create.ts +++ b/api/src/cli/commands/roles/create.ts @@ -1,6 +1,6 @@ import { getSchema } from '../../../utils/get-schema'; -export default async function rolesCreate({ name, admin }: { name: string; admin: boolean }): Promise { +export default async function rolesCreate({ role: name, admin }: { role: string; admin: boolean }): Promise { const { default: database } = require('../../../database/index'); const { RolesService } = require('../../../services/roles'); diff --git a/api/src/cli/index.ts b/api/src/cli/index.ts index 3443a17ed2..462f611376 100644 --- a/api/src/cli/index.ts +++ b/api/src/cli/index.ts @@ -55,7 +55,7 @@ const rolesCommand = program.command('roles'); rolesCommand .command('create') .description('Create a new role') - .option('--name ', `name for the role`) + .option('--role ', `name for the role`) .option('--admin', `whether or not the role has admin access`) .action(rolesCreate);