Forrest logo
back to the gh tool

gh-label:tldr:17969

gh-label: Update the name and description for a specific label for the repository in the current directory.
$ gh label edit ${name} --name ${new_name} --description "${description}"
try on your machine

This command is used in the GitHub (gh) command-line interface to edit a label in a repository. Let's break it down:

  • gh label edit: This is the main command to edit a label.
  • ${name}: This is a placeholder for the current name of the label that you want to edit. You should replace ${name} with the actual name of the label.
  • --name ${new_name}: This flag is used to specify the new name you want to assign to the label. Replace ${new_name} with the desired new name.
  • --description "${description}": This flag is used to specify the new description for the label. Replace ${description} with the desired description enclosed in quotes.

Overall, this command allows you to change the name and description of a label in a GitHub repository using the gh command-line tool.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool