1bpkg-cfg-create(1)          General Commands Manual         bpkg-cfg-create(1)
2
3
4

NAME

6       bpkg-cfg-create - create configuration
7

SYNOPSIS

9       bpkg cfg-create|create [options] [cfg-args]
10       bpkg cfg-create|create [options] --existing|-e
11
12       cfg-args = (module | cfg-var)...
13

DESCRIPTION

15       The cfg-create command creates a new bpkg configuration with the speci‐
16       fied build2 modules and configuration variables  (the  first  form)  or
17       initializes  one  based  on an existing build system configuration (the
18       second form). The bpkg configuration itself is a build system  configu‐
19       ration;  see  build  system  driver  (b(1))  create  meta-operation for
20       details.
21
22       Unless the --existing|-e or  --wipe  option  is  specified,  cfg-create
23       expects  the  configuration  directory  to be empty or to not exist (in
24       which case it will be created).
25
26       By default, the configuration created with the  first  form  loads  the
27       config,  test,  dist,  and install modules. However, additional modules
28       and, if required, their configuration variables can be specified as the
29       cfg-create arguments. For example:
30
31       bpkg create cxx config.cxx=clang++ config.install.root=/usr/local
32
33       By  default,  bpkg appends .config to the names of the modules that you
34       specify so that only their configurations are loaded. You can  override
35       this  behavior  by specifying the period (.) after the module name. You
36       can also instruct bpkg to use the optional module load by prefixing the
37       module name with the question mark (?). For example:
38
39       bpkg create cxx. "?cli"
40

CFG-CREATE OPTIONS

42       --directory|-d dir
43              Create the configuration in dir rather than in the current work‐
44              ing directory.
45
46       --existing|-e
47              Initialize a bpkg configuration based on an existing build  sys‐
48              tem configuration.
49
50       --wipe Wipe  the  configuration directory clean before creating the new
51              configuration.  For safety, this option requires that you  spec‐
52              ify the configuration directory explicitly with --directory|-d.
53

COMMON OPTIONS

55       The  common  options are summarized below with a more detailed descrip‐
56       tion available in bpkg-common-options(1).
57
58       -v     Print essential underlying commands being executed.
59
60       -V     Print all underlying commands being executed.
61
62       --quiet|-q
63              Run quietly, only printing error messages.
64
65       --verbose level
66              Set the diagnostics verbosity to level between 0 and 6.
67
68       --jobs|-j num
69              Number of jobs to perform in parallel.
70
71       --no-result
72              Don't print informational messages about the outcome of perform‐
73              ing a command.
74
75       --no-progress
76              Suppress  progress  indicators for long-lasting operations, such
77              as network transfers, building, etc.
78
79       --build path
80              The build program to be used to build packages.
81
82       --build-option opt
83              Additional option to be passed to the build program.
84
85       --fetch path
86              The fetch program to be used to download resources.
87
88       --fetch-option opt
89              Additional option to be passed to the fetch program.
90
91       --fetch-timeout sec
92              The fetch and fetch-like (for example, git) program timeout.
93
94       --pkg-proxy url
95              HTTP proxy server to use when fetching package manifests and ar‐
96              chives from remote pkg repositories.
97
98       --git path
99              The git program to be used to fetch git repositories.
100
101       --git-option opt
102              Additional common option to be passed to the git program.
103
104       --sha256 path
105              The sha256 program to be used to calculate SHA256 sums.
106
107       --sha256-option opt
108              Additional option to be passed to the sha256 program.
109
110       --tar path
111              The tar program to be used to extract package archives.
112
113       --tar-option opt
114              Additional option to be passed to the tar program.
115
116       --openssl path
117              The openssl program to be used for crypto operations.
118
119       --openssl-option opt
120              Additional option to be passed to the openssl program.
121
122       --auth type
123              Types of repositories to authenticate.
124
125       --trust fingerprint
126              Trust repository certificate with a SHA256 fingerprint.
127
128       --trust-yes
129              Assume the answer to all authentication prompts is yes.
130
131       --trust-no
132              Assume the answer to all authentication prompts is no.
133
134       --pager path
135              The pager program to be used to show long text.
136
137       --pager-option opt
138              Additional option to be passed to the pager program.
139
140       --options-file file
141              Read additional options from file.
142
143       --default-options dir
144              The directory to load additional default options files from.
145
146       --no-default-options
147              Don't load default options files.
148

DEFAULT OPTIONS FILES

150       See  bpkg-default-options-files(1)  for  an  overview  of  the  default
151       options files. For the cfg-create command the search start directory is
152       the  parent  directory  of the new configuration. The following options
153       files are searched for in each directory and, if found, loaded  in  the
154       order listed:
155
156       bpkg.options
157       bpkg-cfg-create.options
158
159       The  following  cfg-create  command  options cannot be specified in the
160       default options files:
161
162       --directory|-d
163       --wipe
164

BUGS

166       Send bug reports to the users@build2.org mailing list.
167
169       Copyright (c) 2014-2020 the build2 authors.
170
171       Permission is granted to copy, distribute and/or modify  this  document
172       under the terms of the MIT License.
173
174
175
176bpkg 0.13.0                        July 2020                bpkg-cfg-create(1)
Impressum