code: def tokens_create(name, user, scopes, internal):
      
      token = Token.create_personal(
          name, user.id, scopes=scopes, is_internal=internal)
      db.session.commit()
      click.secho(token.access_token, fg='blue')
docs: Create a personal OAuth token.