def migrate(directory, message, sql, head, splice, branch_label, version_path,
            rev_id, x_arg):
    """Autogenerate a new revision file (Alias for
    'revision --autogenerate')"""
    _migrate(directory or g.directory, message, sql, head, splice,
             branch_label, version_path, rev_id, x_arg or g.x_arg)
Autogenerate a new revision file (Alias for
    'revision --autogenerate')
src/flask_migrate/cli.py