Skip to content

Ability to set user avatar via CLI #26282

@CodeShakingSheep

Description

@CodeShakingSheep
Contributor

Feature Description

I think it would be great if Gitea had the ability to set a user's avatar via CLI. I would love to have an additional flag avatar. Either during the creation of a user or a dedicated command.

  • gitea admin user create --avatar
  • gitea admin user change-avatar --avatar

With avatar specifying either a URI path to the image or image data as Base64 encoded text.

Screenshots

No response

Activity

added
type/proposalThe new feature has not been accepted yet but needs to be discussed first.
on Aug 1, 2023
silverwind

silverwind commented on Aug 2, 2023

@silverwind
Member

API was added in #25369

CodeShakingSheep

CodeShakingSheep commented on Aug 2, 2023

@CodeShakingSheep
ContributorAuthor

API was added in #25369

Thanks for hinting me at this. As far as I can see, only setting avatars via API was implemented (which is great already). As I'm using CLI to add a batch of users I would prefer to set the avatars via CLI as well. So, I'd leave this issue open and change the title to only include CLI and not API anymore. What do you think?

silverwind

silverwind commented on Aug 2, 2023

@silverwind
Member

Yeah I guess that is fine.

changed the title [-]Ability to set user avatar via CLI / API[/-] [+]Ability to set user avatar via CLI[/+] on Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @silverwind@CodeShakingSheep

        Issue actions

          Ability to set user avatar via CLI · Issue #26282 · go-gitea/gitea