1bpkg-common-options(1) General Commands Manual bpkg-common-options(1)
2
3
4
6 bpkg-common-options - details on common options
7
9 bpkg [common-options] ...
10
12 The common options control behavior that is common to all or most of
13 the bpkg commands. They can be specified either before the command or
14 after, together with the command-specific options.
15
17 -v Print essential underlying commands being executed. This is
18 equivalent to --verbose 2.
19
20 -V Print all underlying commands being executed. This is equivalent
21 to --verbose 3.
22
23 --quiet|-q
24 Run quietly, only printing error messages. This is equivalent to
25 --verbose 0.
26
27 --verbose level
28 Set the diagnostics verbosity to level between 0 and 6. Level 0
29 disables any non-error messages while level 6 produces lots of
30 information, with level 1 being the default. The following addi‐
31 tional types of diagnostics are produced at each level:
32
33 1. High-level information messages.
34
35 2. Essential underlying commands being executed.
36
37 3. All underlying commands being executed.
38
39 4. Information that could be helpful to the user.
40
41 5. Information that could be helpful to the developer.
42
43 6. Even more detailed information.
44
45 --jobs|-j num
46 Number of jobs to perform in parallel. If this option is not
47 specified or specified with the 0 value, then the number of
48 available hardware threads is used. This option is also propa‐
49 gated when performing build system operations such as update,
50 test, etc.
51
52 --no-result
53 Don't print informational messages about the outcome of perform‐
54 ing a command.
55
56 --no-progress
57 Suppress progress indicators for long-lasting operations, such
58 as network transfers, building, etc.
59
60 --build path
61 The build program to be used to build packages. This should be
62 the path to the build2 b executable. You can also specify addi‐
63 tional options that should be passed to the build program with
64 --build-option.
65
66 If the build program is not explicitly specified, then bpkg will
67 by default use b plus an executable suffix if one was specified
68 when building bpkg. So, for example, if bpkg name was set to
69 bpkg-1.0, then it will look for b-1.0.
70
71 --build-option opt
72 Additional option to be passed to the build program. See --build
73 for more information on the build program. Repeat this option to
74 specify multiple build options.
75
76 --fetch path
77 The fetch program to be used to download resources. Currently,
78 bpkg recognizes curl, wget, and fetch. Note that the last compo‐
79 nent of path must contain one of these names as a substring in
80 order for bpkg to recognize which program is being used. You can
81 also specify additional options that should be passed to the
82 fetch program with --fetch-option.
83
84 If the fetch program is not specified, then bpkg will try to
85 discover if one of the above programs is available and use that.
86 Currently, bpkg has the following preference order: wget 1.16 or
87 higher (supports --show-progress), curl, wget, and fetch.
88
89 --fetch-option opt
90 Additional option to be passed to the fetch program. See --fetch
91 for more information on the fetch program. Repeat this option to
92 specify multiple fetch options.
93
94 --fetch-timeout sec
95 The fetch and fetch-like (for example, git) program timeout.
96 While the exact semantics of the value depends on the program
97 used, at a minimum it specifies in seconds the maximum time that
98 can be spent without any network activity.
99
100 Specifically, it is translated to the --max-time option for curl
101 and to the --timeout option for wget and fetch. For git over
102 HTTP/HTTPS this semantics is achieved using the
103 http.lowSpeedLimit=1 http.lowSpeedTime=sec configuration values
104 (the git:// and ssh:// protocols currently do not support time‐
105 outs).
106
107 See --fetch and --git for more information on the fetch pro‐
108 grams.
109
110 --git path
111 The git program to be used to fetch git repositories. You can
112 also specify additional options that should be passed to the git
113 program with --git-option.
114
115 If the git program is not explicitly specified, then bpkg will
116 use git by default.
117
118 --git-option opt
119 Additional common option to be passed to the git program. Note
120 that the common options are the ones that precede the git com‐
121 mand. See --git for more information on the git program. Repeat
122 this option to specify multiple git options.
123
124 --sha256 path
125 The sha256 program to be used to calculate SHA256 sums. Cur‐
126 rently, bpkg recognizes sha256, sha256sum, and shasum. Note that
127 the last component of path must contain one of these names as a
128 substring in order for bpkg to recognize which program is being
129 used. You can also specify additional options that should be
130 passed to the sha256 program with --sha256-option.
131
132 If the sha256 program is not specified, then bpkg will try to
133 discover if one of the above programs is available and use that.
134 Currently, bpkg has the following preference order: sha256,
135 sha256sum, and shasum.
136
137 --sha256-option opt
138 Additional option to be passed to the sha256 program. See
139 --sha256 for more information on the sha256 program. Repeat this
140 option to specify multiple sha256 options.
141
142 --tar path
143 The tar program to be used to extract package archives. For
144 example, gtar or bsdtar. You can also specify additional options
145 that should be passed to the tar program with --tar-option. If
146 the tar program is not explicitly specified, then bpkg will use
147 tar by default.
148
149 --tar-option opt
150 Additional option to be passed to the tar program. See --tar for
151 more information on the tar program. Repeat this option to spec‐
152 ify multiple tar options.
153
154 --openssl path
155 The openssl program to be used for crypto operations. You can
156 also specify additional options that should be passed to the
157 openssl program with --openssl-option. If the openssl program is
158 not explicitly specified, then bpkg will use openssl by default.
159
160 The --openssl* values can be optionally qualified with the
161 openssl command in the command:value form. This makes the value
162 only applicable to the specific command, for example:
163
164 bpkg rep-create \
165 --openssl rsautl:/path/to/openssl \
166 --openssl-option rsautl:-engine \
167 --openssl-option rsautl:pkcs11 \
168 ...
169
170 An unqualified value that contains a colon can be specified as
171 qualified with an empty command, for example, --openssl
172 :C:\bin\openssl. To see openssl commands executed by bpkg, use
173 the verbose mode (-v option).
174
175 --openssl-option opt
176 Additional option to be passed to the openssl program. See
177 --openssl for more information on the openssl program. The val‐
178 ues can be optionally qualified with the openssl command, as
179 discussed in --openssl. Repeat this option to specify multiple
180 openssl options.
181
182 --auth type
183 Types of repositories to authenticate. Valid values for this
184 option are none, remote, all. By default only remote reposito‐
185 ries are authenticated. You can request authentication of local
186 repositories by passing all or disable authentication completely
187 by passing none.
188
189 --trust fingerprint
190 Trust repository certificate with a SHA256 fingerprint. Such a
191 certificate is trusted automatically, without prompting the user
192 for a confirmation. Repeat this option to trust multiple cer‐
193 tificates.
194
195 Note that by default openssl prints a SHA1 fingerprint and to
196 obtain a SHA256 one you will need to pass the -sha256 option,
197 for example:
198
199 openssl x509 -sha256 -fingerprint -noout -in cert.pem
200
201 --trust-yes
202 Assume the answer to all authentication prompts is yes.
203
204 --trust-no
205 Assume the answer to all authentication prompts is no.
206
207 --pager path
208 The pager program to be used to show long text. Commonly used
209 pager programs are less and more. You can also specify addi‐
210 tional options that should be passed to the pager program with
211 --pager-option. If an empty string is specified as the pager
212 program, then no pager will be used. If the pager program is not
213 explicitly specified, then bpkg will try to use less. If it is
214 not available, then no pager will be used.
215
216 --pager-option opt
217 Additional option to be passed to the pager program. See --pager
218 for more information on the pager program. Repeat this option to
219 specify multiple pager options.
220
221 --options-file file
222 Read additional options from file. Each option should appear on
223 a separate line optionally followed by space or equal sign (=)
224 and an option value. Empty lines and lines starting with # are
225 ignored. Option values can be enclosed in double (") or single
226 (') quotes to preserve leading and trailing whitespaces as well
227 as to specify empty values. If the value itself contains trail‐
228 ing or leading quotes, enclose it with an extra pair of quotes,
229 for example '"x"'. Non-leading and non-trailing quotes are
230 interpreted as being part of the option value.
231
232 The semantics of providing options in a file is equivalent to
233 providing the same set of options in the same order on the com‐
234 mand line at the point where the --options-file option is speci‐
235 fied except that the shell escaping and quoting is not required.
236 Repeat this option to specify more than one options file.
237
238 --default-options dir
239 The directory to load additional default options files from.
240
241 --no-default-options
242 Don't load default options files.
243
245 Send bug reports to the users@build2.org mailing list.
246
248 Copyright (c) 2014-2019 Code Synthesis Ltd
249
250 Permission is granted to copy, distribute and/or modify this document
251 under the terms of the MIT License.
252
253
254
255bpkg 0.12.0 November 2019 bpkg-common-options(1)