bdep-update(1)

πŸ“¦
version 0.17.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05

πŸ’… bdep-update β€” bestie edition πŸ’…

okay so this is bdep-update(1) from the General Commands Manual and it's genuinely one of the most useful little commands in the whole bdep fam. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

bdep-update β€” update project in build configurations

like, it updates ur project. in ur build configs. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

bdep update [options] [pkg-spec] [cfg-spec] [cfg-var...]

cfg-spec = (@cfg-name | --config|-c cfg-dir)... | --all|-a
pkg-spec = (--directory|-d pkg-dir)... | prj-spec
prj-spec = --directory|-d prj-dir

no cap, that's the whole shape of it. options, then a pkg-spec, then a cfg-spec, then however many cfg-var... you feel like throwing in. πŸ’–


πŸ‘‘ DESCRIPTION πŸ‘‘

the update command updates the project packages in one or more build configurations. that's the main character job right there. πŸ’…

and then β€” plot twist β€” you can ALSO update the immediate or all dependencies of the project packages by specifying the --immediate|-i or --recursive|-r options, respectively. pick ur fighter.

underneath, update executes the bpkg-pkg-update(1) command, which itself is not much more than the build system update operation (peep b(1) for details). so the real utility of this command? being able to refer to build configurations by names ✨ and to project packages implicitly via the current working directory ✨ as well as to update dependencies ✨. it's giving convenience, fr fr.

if no project or package directory is specified, then the current working directory is assumed. if no configuration is specified, then the default configurations are assumed. see bdep-projects-configs(1) for details on specifying projects and configurations. and the optional cfg-var... are the additional configuration variables to pass to the build system. πŸŽ€


πŸ”₯ UPDATE OPTIONS πŸ”₯

  • --immediate|-i β€” also update immediate dependencies.
  • --recursive|-r β€” also update all dependencies, recursively. like, ALL of them. the whole tree. 🌈
  • --all|-a β€” use all build configurations.
  • --config|-c dir β€” specify the build configuration as a directory.
  • --directory|-d dir β€” assume project/package is in the specified directory rather than in the current working directory.
  • --config-name|-n name β€” specify the build configuration as a name.
  • --config-id num β€” specify the build configuration as an id.

🫢 COMMON OPTIONS 🫢

the common options are summarized below, with a more detailed description available in bdep-common-options(1). go read that if u want the director's cut. 🎬

  • -v β€” print essential underlying commands being executed.
  • -V β€” print all underlying commands being executed.
  • --quiet|-q β€” run quietly, only printing error messages. shhh 🀫
  • --verbose level β€” set the diagnostics verbosity to level between 0 and 6.
  • --stdout-format format β€” representation format to use for printing to stdout.
  • --jobs|-j num β€” number of jobs to perform in parallel.
  • --progress β€” display progress indicators for long-lasting operations, such as network transfers, building, etc.
  • --no-progress β€” suppress progress indicators for long-lasting operations, such as network transfers, building, etc.
  • --diag-color β€” use color in diagnostics.
  • --no-diag-color β€” don't use color in diagnostics.
  • --bpkg path β€” the package manager program to be used for build configuration management.
  • --bpkg-option opt β€” additional option to be passed to the package manager program.
  • --build path β€” the build program to be used to build packages.
  • --build-option opt β€” additional option to be passed to the build program.
  • --curl path β€” the curl program to be used for network operations.
  • --curl-option opt β€” additional option to be passed to the curl program.
  • --pager path β€” the pager program to be used to show long text.
  • --pager-option opt β€” additional option to be passed to the pager program.
  • --options-file file β€” read additional options from file.
  • --default-options dir β€” the directory to load additional default options files from.
  • --no-default-options β€” don't load default options files.

πŸŽ€ DEFAULT OPTIONS FILES πŸŽ€

see bdep-default-options-files(1) for an overview of the default options files. for the update command the search start directory is the project directory. the following options files are searched for in each directory and, if found, loaded in the order listed:

bdep.options
bdep-update.options

the following update command options cannot be specified in the default options files:

--directory|-d
🚨 bestie listen. --directory|-d is NOT allowed in ur default options files. do not try it. i'm serious. πŸ’€

πŸ™ˆ BUGS πŸ™ˆ

send bug reports to the users@build2.org mailing list. they're nice, they'll read it. be brave. πŸ¦‹


Copyright (c) 2014-2024 the build2 authors.

Permission is granted to copy, distribute and/or modify this document under the terms of the MIT License.


and that's the whole page, bestie. this was bdep 0.17.0, from June 2024, out here being iconic as ever. go update ur projects, u got this. periodt. πŸ‘‘πŸ’–βœ¨

πŸ“¦ where this page comes from