File: bugzilla.1

package info (click to toggle)
python-bugzilla 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,116 kB
  • sloc: python: 6,160; makefile: 7
file content (657 lines) | stat: -rw-r--r-- 17,392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "BUGZILLA" 1 "" "" "User Commands"
.SH NAME
bugzilla \- command line tool for interacting with Bugzilla
.SH SYNOPSIS
.sp
\fBbugzilla\fP [\fIoptions\fP] [\fIcommand\fP] [\fIcommand\-options\fP]
.SH DESCRIPTION
.sp
\fBbugzilla\fP is a command line tool for interacting with a Bugzilla
instance over REST or XMLRPC.
.nf

\fIcommand\fP is one of:
* login \- log into the given bugzilla instance
* new \- create a new bug
* query \- search for bugs matching given criteria
* modify \- modify existing bugs
* attach \- attach files to existing bugs, or get attachments
* info \- get info about the given bugzilla instance
.fi
.sp
.SH GLOBAL OPTIONS
.SS \fB\-\-help, \-h\fP
.sp
\fBSyntax:\fP \fB\-h\fP
.sp
show this help message and exit
.SS \fB\-\-bugzilla\fP
.sp
\fBSyntax:\fP \fB\-\-bugzilla\fP BUGZILLA
.sp
The bugzilla URL. Full API URLs are typically like:
.nf

* \fI\%https://bugzilla.example.com/xmlrpc.cgi\fP    # XMLRPC API
* \fI\%https://bugzilla.example.com/rest/\fP         # REST API

.fi
.sp
.sp
If a non\-specific URL is passed, like \(aqbugzilla.redhat.com\(aq, \fBbugzilla\fP
will try to probe whether the expected XMLRPC or REST path is available,
preferring XMLRPC for backwards compatibility.
.sp
The default URL \fI\%https://bugzilla.redhat.com\fP
.SS \fB\-\-nosslverify\fP
.sp
\fBSyntax:\fP \fB\-\-nosslverify\fP
.sp
Don\(aqt error on invalid bugzilla SSL certificate
.SS \fB\-\-cert\fP
.sp
\fBSyntax:\fP \fB\-\-cert\fP CERTFILE
.sp
client side certificate file needed by the webserver.
.SS \fB\-\-login\fP
.sp
\fBSyntax:\fP \fB\-\-login\fP
.sp
Run interactive \(dqlogin\(dq before performing the specified command.
.SS \fB\-\-username\fP
.sp
\fBSyntax:\fP \fB\-\-username\fP USERNAME
.sp
Log in with this username
.SS \fB\-\-password\fP
.sp
\fBSyntax:\fP \fB\-\-password\fP PASSWORD
.sp
Log in with this password
.SS \fB\-\-restrict\-login\fP
.sp
\fBSyntax:\fP \fB\-\-restrict\-login\fP
.sp
The session (login token) will be restricted to the current IP
address.
.SS \fB\-\-ensure\-logged\-in\fP
.sp
\fBSyntax:\fP \fB\-\-ensure\-logged\-in\fP
.sp
Raise an error if we aren\(aqt logged in to bugzilla. Consider using
this if you are depending on cached credentials, to ensure that when
they expire the tool errors, rather than subtly change output.
.SS \fB\-\-no\-cache\-credentials\fP
.sp
\fBSyntax:\fP \fB\-\-no\-cache\-credentials\fP
.sp
Don\(aqt save any bugzilla tokens to disk, and don\(aqt use any
pre\-existing credentials.
.SS \fB\-\-tokenfile\fP
.sp
\fBSyntax:\fP \fB\-\-tokenfile\fP TOKENFILE
.sp
token file to use for bugzilla authentication
.SS \fB\-\-verbose\fP
.sp
\fBSyntax:\fP \fB\-\-verbose\fP
.sp
give more info about what\(aqs going on
.SS \fB\-\-debug\fP
.sp
\fBSyntax:\fP \fB\-\-debug\fP
.sp
output bunches of debugging info
.SS \fB\-\-version\fP
.sp
\fBSyntax:\fP \fB\-\-version\fP
.sp
show program\(aqs version number and exit
.SH STANDARD BUGZILLA OPTIONS
.sp
These options are shared by some combination of the \(aqnew\(aq, \(aqquery\(aq, and
\(aqmodify\(aq sub commands. Not every option works for each command though.
.SS \fB\-p, \-\-product\fP
.sp
\fBSyntax:\fP \fB\-\-product\fP PRODUCT
.sp
Product name
.SS \fB\-v, \-\-version\fP
.sp
\fBSyntax:\fP \fB\-\-version\fP VERSION
.sp
Product version
.SS \fB\-c, \-\-component\fP
.sp
\fBSyntax:\fP \fB\-\-component\fP COMPONENT
.sp
Component name
.SS \fB\-s, \-\-summary\fP
.sp
\fBSyntax:\fP \fB\-\-summary\fP SUMMARY
.sp
Bug summary
.SS \fB\-l, \-\-comment\fP
.sp
\fBSyntax:\fP \fB\-\-comment\fP DESCRIPTION
.sp
Set initial bug comment/description
.SS \fB\-\-comment\-tag\fP
.sp
\fBSyntax:\fP \fB\-\-comment\-tag\fP TAG
.sp
Comment tag for the new comment
.SS \fB\-\-sub\-component\fP
.sp
\fBSyntax:\fP \fB\-\-sub\-component\fP SUB_COMPONENT
.sp
RHBZ sub component name
.SS \fB\-o, \-\-os\fP
.sp
\fBSyntax:\fP \fB\-\-os\fP OS
.sp
Operating system
.SS \fB\-\-arch\fP
.sp
\fBSyntax:\fP \fB\-\-arch\fP ARCH
.sp
Arch this bug occurs on
.SS \fB\-x, \-\-severity\fP
.sp
\fBSyntax:\fP \fB\-\-severity\fP SEVERITY
.sp
Bug severity
.SS \fB\-z, \-\-priority\fP
.sp
\fBSyntax:\fP \fB\-\-priority\fP PRIORITY
.sp
Bug priority
.SS \fB\-\-alias\fP
.sp
\fBSyntax:\fP \fB\-\-alias\fP ALIAS
.sp
Bug alias (name)
.SS \fB\-s, \-\-status\fP
.sp
\fBSyntax:\fP \fB\-\-status\fP STATUS
.sp
Bug status (NEW, ASSIGNED, etc.)
.SS \fB\-u, \-\-url\fP
.sp
\fBSyntax:\fP \fB\-\-url\fP URL
.sp
URL for further bug info
.SS \fB\-m \-\-target_milestone\fP
.sp
\fBSyntax:\fP \fB\-\-target_milestone\fP TARGET_MILESTONE
.sp
Target milestone
.SS \fB\-\-target_release\fP
.sp
\fBSyntax:\fP \fB\-\-target_release\fP TARGET_RELEASE
.sp
RHBZ Target release
.SS \fB\-\-blocked\fP
.sp
\fBSyntax:\fP \fB\&...]\fP
.sp
Bug IDs that this bug blocks
.SS \fB\-\-dependson\fP
.sp
\fBSyntax:\fP \fB\&...]\fP
.sp
Bug IDs that this bug depends on
.SS \fB\-\-keywords\fP
.sp
\fBSyntax:\fP \fB\&...]\fP
.sp
Bug keywords
.SS \fB\-\-groups\fP
.sp
\fBSyntax:\fP \fB\&...]\fP
.sp
Which user groups can view this bug
.SS \fB\-\-cc\fP
.sp
\fBSyntax:\fP \fB\&...]\fP
.sp
CC list
.SS \fB\-a, \-\-assignee, \-\-assigned_to\fP
.sp
\fBSyntax:\fP \fB\-\-assigned_to\fP ASSIGNED_TO
.sp
Bug assignee
.SS \fB\-q, \-\-qa_contact\fP
.sp
\fBSyntax:\fP \fB\-\-qa_contact\fP QA_CONTACT
.sp
QA contact
.SS \fB\-f, \-\-flag\fP
.sp
\fBSyntax:\fP \fB\-\-flag\fP FLAG
.sp
Set or unset a flag. For example, to set a flag named devel_ack, do
\-\-flag devel_ack+ Unset a flag with the \(aqX\(aq value, like \-\-flag
needinfoX
.SS \fB\-\-tags\fP
.sp
\fBSyntax:\fP \fB\-\-tags\fP TAG
.sp
Set (personal) tags field
.SS \fB\-w, \-\-whiteboard\fP
.sp
\fBSyntax:\fP \fB\-\-whiteboard\fP WHITEBOARD
.sp
Whiteboard field
.SS \fB\-\-devel_whiteboard\fP
.sp
\fBSyntax:\fP \fB\-\-devel_whiteboard\fP DEVEL_WHITEBOARD
.sp
RHBZ devel whiteboard field
.SS \fB\-\-internal_whiteboard\fP
.sp
\fBSyntax:\fP \fB\-\-internal_whiteboard\fP INTERNAL_WHITEBOARD
.sp
RHBZ internal whiteboard field
.SS \fB\-\-qa_whiteboard\fP
.sp
\fBSyntax:\fP \fB\-\-qa_whiteboard\fP QA_WHITEBOARD
.sp
RHBZ QA whiteboard field
.SS \fB\-F, \-\-fixed_in\fP
.sp
\fBSyntax:\fP \fB\-\-fixed_in\fP FIXED_IN
.sp
RHBZ \(aqFixed in version\(aq field
.SS \fB\-\-field\fP
.sp
\fBSyntax:\fP \fB\-\-field\fP FIELD=VALUE
.sp
Manually specify a bugzilla API field. FIELD is the raw name used
by the bugzilla instance. For example if your bugzilla instance has a
custom field cf_my_field, do: \-\-field cf_my_field=VALUE
.SS \fB\-\-field\-json\fP
.sp
\fBSyntax:\fP \fB\-\-field\-json\fP JSONSTRING
.sp
Specify \-\-field data as a JSON string. Example:
\-\-field\-json \(aq{\(dqcf_my_field\(dq: \(dqVALUE\(dq, \(dqcf_array_field\(dq: [1, 2]}\(aq
.SH OUTPUT OPTIONS
.sp
These options are shared by several commands, for tweaking the text
output of the command results.
.SS \fB\-\-full\fP
.sp
\fBSyntax:\fP \fB\-\-full\fP
.sp
output detailed bug info
.SS \fB\-i, \-\-ids\fP
.sp
\fBSyntax:\fP \fB\-\-ids\fP
.sp
output only bug IDs
.SS \fB\-e, \-\-extra\fP
.sp
\fBSyntax:\fP \fB\-\-extra\fP
.sp
output additional bug information (keywords, Whiteboards, etc.)
.SS \fB\-\-oneline\fP
.sp
\fBSyntax:\fP \fB\-\-oneline\fP
.sp
one line summary of the bug (useful for scripts)
.SS \fB\-\-json\fP
.sp
\fBSyntax:\fP \fB\-\-json\fP
.sp
output bug contents in JSON format
.SS \fB\-\-includefield\fP
.sp
\fBSyntax:\fP \fB\-\-includefield\fP
.sp
Pass the field name to bugzilla include_fields list.
Only the fields passed to include_fields are returned
by the bugzilla server.
This can be specified multiple times.
.SS \fB\-\-extrafield\fP
.sp
\fBSyntax:\fP \fB\-\-extrafield\fP
.sp
Pass the field name to bugzilla extra_fields list.
When used with \-\-json this can be used to request
bugzilla to return values for non\-default fields.
This can be specified multiple times.
.SS \fB\-\-excludefield\fP
.sp
\fBSyntax:\fP \fB\-\-excludefield\fP
.sp
Pass the field name to bugzilla exclude_fields list.
When used with \-\-json this can be used to request
bugzilla to not return values for a field.
This can be specified multiple times.
.SS \fB\-\-raw\fP
.sp
\fBSyntax:\fP \fB\-\-raw\fP
.sp
raw output of the bugzilla contents. This format is unstable and
difficult to parse. Please use the \fB\-\-json\fP instead if you want
maximum output from the \fIbugzilla\fP
.SS \fB\-\-outputformat\fP
.sp
\fBSyntax:\fP \fB\-\-outputformat\fP OUTPUTFORMAT
.sp
Print output in the form given. You can use RPM\-style tags that match
bug fields, e.g.: \(aq%{id}: %{summary}\(aq.
.sp
The output of the bugzilla tool should NEVER BE PARSED unless you are
using a custom \-\-outputformat. For everything else, just don\(aqt parse it,
the formats are not stable and are subject to change.
.sp
\-\-outputformat allows printing arbitrary bug data in a user preferred
format. For example, to print a returned bug ID, component, and product,
separated with ::, do:
.sp
\-\-outputformat \(dq%{id}::%{component}::%{product}\(dq
.sp
The fields (like \(aqid\(aq, \(aqcomponent\(aq, etc.) are the names of the values
returned by bugzilla\(aqs API. To see a list of all fields,
check the API documentation in the \(aqSEE ALSO\(aq section. Alternatively,
run a \(aqbugzilla \-\-debug query ...\(aq and look at the key names returned in
the query results. Also, in most cases, using the name of the associated
command line switch should work, like \-\-bug_status becomes
%{bug_status}, etc.
.SH ‘QUERY’ SPECIFIC OPTIONS
.sp
Certain options can accept a comma separated list to query multiple
values, including \-\-status, \-\-component, \-\-product, \-\-version, \-\-id.
.sp
Note: querying via explicit command line options will only get you so
far. See the \-\-from\-url option for a way to use powerful Web UI queries
from the command line.
.SS \fB\-b, \-\-bug_id, \-\-id\fP
.sp
\fBSyntax:\fP \fB\-\-id\fP ID
.sp
specify individual bugs by IDs, separated with commas
.SS \fB\-r, \-\-reporter\fP
.sp
\fBSyntax:\fP \fB\-\-reporter\fP REPORTER
.sp
Email: search reporter email for given address
.SS \fB\-\-quicksearch\fP
.sp
\fBSyntax:\fP \fB\-\-quicksearch\fP QUICKSEARCH
.sp
Search using bugzilla\(aqs quicksearch functionality.
.SS \fB\-\-savedsearch\fP
.sp
\fBSyntax:\fP \fB\-\-savedsearch\fP SAVEDSEARCH
.sp
Name of a bugzilla saved search. If you don\(aqt own this saved search,
you must passed \-\-savedsearch_sharer_id.
.SS \fB\-\-savedsearch\-sharer\-id\fP
.sp
\fBSyntax:\fP \fB\-\-savedsearch\-sharer\-id\fP SAVEDSEARCH_SHARER_ID
.sp
Owner ID of the \-\-savedsearch. You can get this ID from the URL
bugzilla generates when running the saved search from the web UI.
.SS \fB\-\-from\-url\fP
.sp
\fBSyntax:\fP \fB\-\-from\-url\fP WEB_QUERY_URL
.sp
Make a working query via bugzilla\(aqs \(aqAdvanced search\(aq web UI, grab
the url from your browser (the string with query.cgi or buglist.cgi
in it), and \-\-from\-url will run it via the bugzilla API. Don\(aqt forget
to quote the string! This only works for Bugzilla 5 and Red Hat
bugzilla
.SH ‘MODIFY’ SPECIFIC OPTIONS
.sp
Fields that take multiple values have a special input format.
.nf
Append: \fI\%\-\-cc=foo@example.com\fP
Overwrite: \fI\%\-\-cc==foo@example.com\fP
Remove: \fI\%\-\-cc=\-foo@example.com\fP
.fi
.sp
.sp
Options that accept this format: \-\-cc, \-\-blocked, \-\-dependson, \-\-groups,
\-\-tags, whiteboard fields.
.SS \fB\-k, \-\-close RESOLUTION\fP
.sp
\fBSyntax:\fP \fBRESOLUTION\fP
.sp
Close with the given resolution (WONTFIX, NOTABUG, etc.)
.SS \fB\-d, \-\-dupeid\fP
.sp
\fBSyntax:\fP \fB\-\-dupeid\fP ORIGINAL
.sp
ID of original bug. Implies \-\-close DUPLICATE
.SS \fB\-\-private\fP
.sp
\fBSyntax:\fP \fB\-\-private\fP
.sp
Mark new comment as private
.SS \fB\-\-reset\-assignee\fP
.sp
\fBSyntax:\fP \fB\-\-reset\-assignee\fP
.sp
Reset assignee to component default
.SS \fB\-\-reset\-qa\-contact\fP
.sp
\fBSyntax:\fP \fB\-\-reset\-qa\-contact\fP
.sp
Reset QA contact to component default
.SS \fB\-\-minor\-update\fP
.sp
\fBSyntax:\fP \fB\-\-minor\-update\fP
.sp
Request bugzilla to not send any email about this change
.SH ‘NEW’ SPECIFIC OPTIONS
.SS \fB\-\-private\fP
.sp
\fBSyntax:\fP \fB\-\-private\fP
.sp
Mark new comment as private
.SH ‘ATTACH’ OPTIONS
.SS \fB\-f, \-\-file\fP
.sp
\fBSyntax:\fP \fB\-\-file\fP FILENAME
.sp
File to attach, or filename for data provided on stdin
.SS \fB\-d, \-\-description\fP
.sp
\fBSyntax:\fP \fB\-\-description\fP DESCRIPTION
.sp
A short description of the file being attached
.SS \fB\-t, \-\-type\fP
.sp
\fBSyntax:\fP \fB\-\-type\fP MIMETYPE
.sp
Mime\-type for the file being attached
.SS \fB\-g, \-\-get\fP
.sp
\fBSyntax:\fP \fB\-\-get\fP ATTACHID
.sp
Download the attachment with the given ID
.SS \fB\-\-getall\fP
.sp
\fBSyntax:\fP \fB\-\-getall\fP BUGID
.sp
Download all attachments on the given bug
.SS \fB\-\-ignore\-obsolete\fP
.sp
\fBSyntax:\fP \fB\-\-ignore\-obsolete\fP
.sp
Do not download attachments marked as obsolete.
.SS \fB\-l, \-\-comment\fP
.sp
\fBSyntax:\fP \fB\-\-comment\fP COMMENT
.sp
Add comment with attachment
.SH ‘INFO’ OPTIONS
.SS \fB\-p, \-\-products\fP
.sp
\fBSyntax:\fP \fB\-\-products\fP
.sp
Get a list of products
.SS \fB\-c, \-\-components\fP
.sp
\fBSyntax:\fP \fB\-\-components\fP PRODUCT
.sp
List the components in the given product
.SS \fB\-o, \-\-component_owners\fP
.sp
\fBSyntax:\fP \fB\-\-component_owners\fP PRODUCT
.sp
List components (and their owners)
.SS \fB\-v, \-\-versions\fP
.sp
\fBSyntax:\fP \fB\-\-versions\fP PRODUCT
.sp
List the versions for the given product
.SS \fB\-\-active\-components\fP
.sp
\fBSyntax:\fP \fB\-\-active\-components\fP
.sp
Only show active components. Combine with \-\-components*
.SH BUGZILLARC CONFIG FILE
.sp
Both \fBbugzilla\fP and the python\-bugzilla library will read
a \fBbugzillarc\fP config file if it is present in the following
locations:
.INDENT 0.0
.IP \(bu 2
/etc/bugzillarc
.IP \(bu 2
~/.bugzillarc
.IP \(bu 2
~/.config/python\-bugzilla/bugzillarc
.UNINDENT
.sp
The contents of the files are processed and merged together
in the order they are listed above.
.sp
The main usage for \fBbugzillarc\fP is to store API keys for your
bugzilla URLs:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
[bugzilla.example.com]
api_key=INSERT\-YOUR\-API\-KEY\-HERE

[bugzilla.redhat.com]
api_key=MY\-REDHAT\-API\-KEY\-BLAH
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
The sections must be hostnames. Other values that can be
set per hostname section are
.INDENT 0.0
.IP \(bu 2
\fBuser\fP: default auth username
.IP \(bu 2
\fBpassword\fP: default auth password
.IP \(bu 2
\fBcert\fP: default client side certificate
.UNINDENT
.sp
A \fB[DEFAULTS]\fP section is also accepted, which takes the following
values:
.INDENT 0.0
.IP \(bu 2
\fBurl\fP: default bugzilla URL
.UNINDENT
.SH AUTHENTICATION CACHE AND API KEYS
.sp
Some command usage will require an active login to the bugzilla
instance. For example, if the bugzilla instance has some private bugs,
those bugs will be missing from \(aqquery\(aq output if you do not have an
active login.
.sp
If you are connecting to a bugzilla 5.0 or later instance, the best
option is to use bugzilla API keys. From the bugzilla web UI, log in,
navigate to Preferences\->API Keys, and generate a key (it will be a long
string of characters and numbers).
.sp
Then use \(aqbugzilla \-\-bugzilla URL login \-\-api\-key\(aq, which will ask
for the API key, and save it to \fBbugzillarc\fP for you.
.sp
For older bugzilla instances, you will need to cache a login token
with the \(dqlogin\(dq subcommand or the \(dq\-\-login\(dq argument.
.sp
Additionally, the \-\-no\-cache\-credentials option will tell the bugzilla
tool to \fInot\fP save or use any authentication cache, including the
\fBbugzillarc\fP file.
.SH EXAMPLES
.nf
bugzilla query \-\-bug_id 62037

bugzilla query \-\-version 15 \-\-component python\-bugzilla

bugzilla login

bugzilla new \-p Fedora \-v rawhide \-c python\-bugzilla \e
.in +2
\-\-summary \(dqpython\-bugzilla causes headaches\(dq \e
\-\-comment \(dqpython\-bugzilla made my brain hurt when I used it.\(dq

.in -2
bugzilla attach \-\-file ~/Pictures/cam1.jpg \-\-desc \(dqme, in pain\(dq
$BUGID

bugzilla attach \-\-getall $BUGID

bugzilla modify \-\-close NOTABUG \-\-comment \(dqActually, you\(aqre
hungover.\(dq $BUGID
.fi
.sp
.SH EXIT STATUS
.sp
\fBbugzilla\fP normally returns 0 if the requested command was successful.
Otherwise, exit status is 1 if \fBbugzilla\fP is interrupted by the user
(or a login attempt fails), 2 if a socket error occurs (e.g. TCP
connection timeout), and 3 if the Bugzilla server throws an error.
.SH BUGS
.sp
Please report any bugs as github issues at
\fI\%https://github.com/python\-bugzilla/python\-bugzilla\fP
.SH SEE ALSO
.sp
\fI\%https://bugzilla.readthedocs.io/en/latest/api/index.html\fP
.sp
\fI\%https://bugzilla.redhat.com/docs/en/html/api/core/v1/bug.html\fP
.\" Generated by docutils manpage writer.
.