def add_cli_flask(main: click.Group) -> click.Group:  
@main.command()<EOL>@click.option('<STR_LIT>', '<STR_LIT>', is_flag=True)<EOL>@click.option('<STR_LIT>', '<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', default=os.urandom(<NUM_LIT:8>))<EOL>@click.pass_obj<EOL>def web(manager, debug, port, host, secret_key):<EOL><INDENT>"""<STR_LIT>"""<EOL>if not manager.is_populated():<EOL><INDENT>click.echo('<STR_LIT>'.format(manager.module_name))<EOL>sys.exit(<NUM_LIT:0>)<EOL><DEDENT>app = manager.get_flask_admin_app(url='<STR_LIT:/>', secret_key=secret_key)<EOL>app.run(debug=debug, host=host, port=port)<EOL><DEDENT>return main<EOL>
Add a ``web`` comand main :mod:`click` function.