GH-CODESPACE-EDIT(1)

✨ gh-codespace-edit β€” GitHub CLI manual ✨

okay bestie, so this is the page for gh-codespace-edit from the GitHub CLI manual, and honestly? it's giving glow-up energy πŸ’…


πŸŽ€ NAME πŸŽ€

gh-codespace-edit β€” literally the command that lets you edit a codespace. that's it, that's the vibe πŸ¦‹


πŸ’– SYNOPSIS πŸ’–

gh codespace edit [flags]

short, sweet, iconic. flags go brrr ✨


🌸 OPTIONS 🌸

okay here's the whole menu, no skips, no cap πŸ‘‘

  • -c, --codespace <string> β€” the name of the codespace you're editing. like, which one. pick your main character 🫢
  • -d, --display-name <string> β€” sets the display name. yes you can rename your little guy 😭
  • -m, --machine <string> β€” sets the hardware specifications for the VM. bigger machine = bigger energy πŸ”₯
  • -R, --repo <string> β€” filter the codespace selection by repository name, in user/repo form πŸ“
  • --repo-owner <string> β€” filter the codespace selection by repository owner β€” that's a username or an org 🧚
ngl, the two --repo* ones are just filters to help you find the right codespace. they're the search bar of this whole operation πŸ’€

🌈 EXIT CODES 🌈

so when the command finishes, it tells you how it went. vibe check time ⭐

  • 0 β€” successful execution. slay, it worked πŸ’–
  • 1 β€” error. not the vibe πŸ™ˆ
  • 2 β€” the command was canceled. you (or something) backed out 😭
  • 4 β€” authentication required. you gotta prove who you are first, bestie πŸ”‘
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. iykyk ✨

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole thing! you're so ready for this πŸ’œ

cute lil sign-off: this page is from GitHub CLI v2.102.0, dated Oct 2026 β€” go forth and edit those codespaces, bestie πŸŽ€
πŸ“¦ where this page comes from