GCLI-ATTACHMENTS(1)

πŸ“¦ version 2.13.0, in nixpkgs unstable, ubuntu stonking

✨ GCLI-ATTACHMENTS ✨

ok so real talk, this is the gcli-attachments page, and yeah it lives in the big book of General Commands, but honestly? it's giving "your bestie who handles your Bugzilla attachments so you don't have to". no cap. πŸ’…

🌸 NAME 🌸

gcli attachments β€” create, view or update Bugzilla attachments. that's the whole job. that's the vibe. πŸ¦‹

✨ SYNOPSIS ✨

gcli attachments -i attachment actions...
gcli attachments create -f file -s summary -i bug-id [-p] [-P]
                 [-c comment] [fl C content-type] [-F filename]

πŸ’– DESCRIPTION πŸ’–

so gcli attachments is your girl for managing Bugzilla attachments. every attachment gets its own unique ID, bestie β€” that's how we find them. and here's the cute part: you can associate attachments with one or more bugs. multitasking icon behavior, honestly. πŸ‘‘

πŸŽ€ OPTIONS πŸŽ€

  • -i, --id β€” run your actions on the attachment with the ID you give it. that's the target. that's the moment. ✨

🌈 SUBCOMMANDS 🌈

create

creates an attachment. like, makes one. from scratch. out of nothing. main character energy fr fr. 🫢

the following flags can be specified:

  • -s, --summary summary β€” the summary of the attachment. yes you need one, no you can't skip the vibes-check. πŸ“
  • -f, --file path β€” upload the given file as the attachment content. and yes, you can also use - to read the content from stdin β€” very "piping things into me" of you, slay. πŸ’…
  • -i, --id bug-id β€” upload the attachment for the given bug-id. that's where it's going. πŸ›
  • -F, --filename filename β€” when you upload a file, gcli attachments grabs the filename from -f and hands it over to Bugzilla. -F lets you pass a different file name and override whatever name -f gave you. this is lowkey essential when the content is coming from stdin, bc stdin doesn't have a filename, bestie. πŸŽ€
  • -c, --comment comment β€” a comment for the attachment. say something nice. or unhinged. your call. πŸ’¬
  • -C, --content-type content-type β€” the content type of the attachment. heads up: this option gets set automatically when -p is set. but if -p is not set, then this one is mandatory. no content-type, no service. 😭
  • -p, --patch β€” the attachment is a patch. the way that this means you do not need to specify a content-type via -C?? iconic. automatic. we love her. πŸ”₯
  • -P, --private β€” the attachment is private. 🀫

πŸ¦‹ ACTIONS πŸ¦‹

actions... may be one or more of these, k? mix and match, go wild:

  • obsolete β€” mark the attachment as obsolete. it's over, it's not coming back, periodt. πŸ’€
  • get [-o output] β€” print or download the attachment content. when -o is specified, the contents get written to the given file instead. download girlie behavior. ⭐

🧚 EXAMPLES 🧚

print the content of attachment with ID 42:

$ gcli att -i 42 get

create an attachment for bug 22 from a git diff:

$ git diff | gcli att create -f - -F gcli.diff -i 22 -s 'git diff' -p

mark attachment 100 as obsolete:

$ gcli att -i 100 obsolete

🌟 SEE ALSO 🌟

git(1), gcli(1),

(yeah there's a trailing comma, she's mysterious like that πŸ™ˆ)

πŸ’œ AUTHORS πŸ’œ

Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors. screaming, crying, throwing up β€” thank you for your service. 🫢

🌸 BUGS 🌸

there are a lot of features missing in this subcommand. not me exposing my own flaws in the documentation πŸ’€ it's called transparency and we're obsessed with it.


ok that's the whole page bestie, mwah πŸ’– this was gcli version 2.13.0, dated 05-Aug-2026, and honestly? she ate. go attach something. βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from