@cli_app.command("<STR_LIT>")<EOL>@click.option("<STR_LIT>", default="<STR_LIT>", help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", default="<STR_LIT>", help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", default="<STR_LIT>", prompt="<STR_LIT>")<EOL>@click.option("<STR_LIT>", prompt="<STR_LIT>")<EOL>@click.option("<STR_LIT>", prompt="<STR_LIT>")<EOL>@click.option("<STR_LIT>", prompt="<STR_LIT>")<EOL>@click.option("<STR_LIT>", prompt="<STR_LIT>")<EOL>@click.password_option()<EOL>def create_user(app, appbuilder, role, username, firstname, lastname, email, password):
_appbuilder = import_application(app, appbuilder)<EOL>role_object = _appbuilder.sm.find_role(role)<EOL>user = _appbuilder.sm.add_user(<EOL>username, firstname, lastname, email, role_object, password<EOL>)<EOL>if user:<EOL><INDENT>click.echo(click.style("<STR_LIT>".format(username), fg="<STR_LIT>"))<EOL><DEDENT>else:<EOL><INDENT>click.echo(click.style("<STR_LIT>", fg="<STR_LIT>"))<EOL><DEDENT>
Create a user