table of contents
| GCLI-ATTACHMENTS(1) | General Commands Manual | GCLI-ATTACHMENTS(1) |
NAME¶
gcli attachments —
Create, view or update Bugzilla attachments
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¶
gcli attachments is used to manage
Bugzilla attachments. Attachments are referred to by unique IDs. You can
assoiate attachments with one or more bugs.
OPTIONS¶
-i,--id- Execute actions on the given attachment ID.
SUBCOMMANDS¶
create- Create an attachment.
The following flags can be specified:
-s,--summarysummary- Summary of the attachment
-f,--filepath- Upload the given file as the attachment content. You can also use “-” to read the content from stdin.
-i,--idbug-id- Upload the attachment for the given bug-id.
-F,--filenamefilename- When uploading the file,
gcli attachmentsuses the the filename from-fto pass the filename to Bugzilla.-Flets you pass a different file name and override the-fprovided name. This is useful when reading the content from stdin. -c,--commentcomment- Comment for the attachment.
-C,--content-typecontent-type- Content type of the attachment. This option is set automatically when
-pis set. Otherwise this option is mandatory. -p,--patch- The attachment is a patch. When this flag is set you don't need to
specify a content-type via
-C. -P,--private- The attachment is private.
ACTIONS¶
actions... may be one or more of the following:
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¶
AUTHORS¶
Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors.
BUGS¶
There are a lot of features missing in this subcommand.
| 05-Aug-2026 | gcli 2.13.0 |