bpt pkg¶
bpt pkg is a family of subcommands that can be used to create and inspect
packages.
bpt pkg search¶
bpt pkg search will search for packages available in one or more
repositories.
- <name-or-pattern>¶
A name or glob-style pattern to search for. Matching packages will be listed in the command output. Searching is case-insensitive. Only the name of the package will be matched (not the version). If omitted, all packages will be listed.
- --use-repo <url-or-path>, -r <url-or-path>¶
Specify the URL or filepath to a package repository to use for package/dependency lookup. This option can be repeated for multiple repositories. The default repository will always be available unless
--no-default-repois specified.Only packages in any expressly-enabled repositories will be available.
- --no-default-repo, -NDR¶
Disable the default package repository for dependency/package lookup.
This can also be enforced by setting the
BPT_NO_DEFAULT_REPOenvironment variable to a “truthy” value.
- --repo-sync {always,cached-okay,never}¶
Mode for repository metadata synchronization. Default is
always.alwaysAlways try to keep the repository metadata up-to-date. If there is a failure to validate/update the repo metadata, the build fails immediately.
cached-okayAttempt to update the repository metadata. If a low-level network error prevents such an update and we have cached metadata for the repository, ignore the error and continue.
neverDo not try to update the repository metadata. This option requires that there be a local cache of the repository metadata before being used.
If any packages need to be pulled for the build and those packages are not already locally cached,
bptwill still attempt to download those packages from the repository.
Regardless of this option, the HTTP
Cache-Controlheaders for the repository data will be respected. If repository data is within the lifetime of themax-ageof the resource,bptwill not try to update the repository data.
bpt pkg create¶
bpt pkg create will generate a CRS package from a bpt project.
- --project <project-path>, -p <project-path>¶
Specify the filepath to a directory containing a
bptproject. If not specified, the project in the working directory will be used.
- --out <path>, -o <path>¶
Specify the filepath at which the CRS package archive file will be written. The default is a filename based on the name and version of the input package.
- --if-exists {replace,ignore,fail}¶
Specify the behavior of
bptin case the output package file already exists. The default value isfail.
bpt pkg prefetch¶
bpt pkg prefetch can be used to fetch packages and package metadata from
remotes so that it will be immediately available in subsequent operations.
Note
This only pulls packages into the CRS package cache (specified by
bpt --crs-cache-dir). It can be used to pre-seed the package cache
before subsequent operations need to pull those packages.
- <pkg-id> ...¶
Any number of package IDs to fetch from repositories. Package IDs are of the form
{name}@{version}.
- --use-repo <url-or-path>, -r <url-or-path>¶
Specify the URL or filepath to a package repository to use for package/dependency lookup. This option can be repeated for multiple repositories. The default repository will always be available unless
--no-default-repois specified.Only packages in any expressly-enabled repositories will be available.
- --no-default-repo, -NDR¶
Disable the default package repository for dependency/package lookup.
This can also be enforced by setting the
BPT_NO_DEFAULT_REPOenvironment variable to a “truthy” value.
- --repo-sync {always,cached-okay,never}¶
Mode for repository metadata synchronization. Default is
always.alwaysAlways try to keep the repository metadata up-to-date. If there is a failure to validate/update the repo metadata, the build fails immediately.
cached-okayAttempt to update the repository metadata. If a low-level network error prevents such an update and we have cached metadata for the repository, ignore the error and continue.
neverDo not try to update the repository metadata. This option requires that there be a local cache of the repository metadata before being used.
If any packages need to be pulled for the build and those packages are not already locally cached,
bptwill still attempt to download those packages from the repository.
Regardless of this option, the HTTP
Cache-Controlheaders for the repository data will be respected. If repository data is within the lifetime of themax-ageof the resource,bptwill not try to update the repository data.
bpt pkg solve¶
bpt pkg solve will attempt to generate a dependency solution from the given
dependency strings specified on the command line.
The requirements will be printed as the output to the bpt command.
- <requirement> ...¶
One or more dependency statements for which
bptwill to try and generate a solution.
- --use-repo <url-or-path>, -r <url-or-path>¶
Specify the URL or filepath to a package repository to use for package/dependency lookup. This option can be repeated for multiple repositories. The default repository will always be available unless
--no-default-repois specified.Only packages in any expressly-enabled repositories will be available.
- --no-default-repo, -NDR¶
Disable the default package repository for dependency/package lookup.
This can also be enforced by setting the
BPT_NO_DEFAULT_REPOenvironment variable to a “truthy” value.
- --repo-sync {always,cached-okay,never}¶
Mode for repository metadata synchronization. Default is
always.alwaysAlways try to keep the repository metadata up-to-date. If there is a failure to validate/update the repo metadata, the build fails immediately.
cached-okayAttempt to update the repository metadata. If a low-level network error prevents such an update and we have cached metadata for the repository, ignore the error and continue.
neverDo not try to update the repository metadata. This option requires that there be a local cache of the repository metadata before being used.
If any packages need to be pulled for the build and those packages are not already locally cached,
bptwill still attempt to download those packages from the repository.
Regardless of this option, the HTTP
Cache-Controlheaders for the repository data will be respected. If repository data is within the lifetime of themax-ageof the resource,bptwill not try to update the repository data.