ALR-WITH(1)
π ALR-WITH(1) β bestie edition π
okay so this is the alr-with page from the Alire manual, and it's literally all about managing your release dependencies. grab a strawberry drink π and let's go.
β¨ NAME β¨
alr-with β Manage release dependencies
π¦ SYNOPSIS π¦
alr with [options] [{ [--del] <crate>[versions]... | --from
<gpr_file>... | <crate>[versions] --use <path> [--commit REF] [--branch
NAME]} ] | --solve | --tree | --versions
π OPTIONS π
--delβ Remove given dependencies. bye bestie π--fromβ Use dependencies declared within GPR project file--graphβ Show ASCII graph of dependencies--branch=NAMEβ Branch to track in repository--commit=REFβ Commit to retrieve from repository--use=PATH|URLβ Add a dependency pinned to some external source--solveβ Show complete solution to dependencies--treeβ Show complete dependency tree--versionsβ Show version status of dependencies
π GLOBAL OPTIONS π
these ones work everywhere, they're the main character energy options π
-c,--config=ARGβ Override configuration folder location-f,--forceβ Keep going after a recoverable troublesome situation-h,--helpβ Display general or command-specific help-n,--non-interactiveβ Assume default answers for all user prompts--no-colorβ Disables colors in output--no-ttyβ Disables control characters in output--prefer-oldestβ Prefer oldest versions instead of newest when resolving dependencies--versionβ Displays version and exits-qβ Limit output to errors-vβ Be more verbose (use twice for extra detail)-d,--debug[]β Enable debug-specific log messages
π DESCRIPTION π
Inspect and manage dependencies. that's the whole vibe, fr fr.
π Inspecting dependencies
Run without arguments prints current dependencies. no args = it just spills the current deps, tea time β
Use --solve to print the solution in use for these dependencies.
β Adding dependencies from the command line
Dependencies are added by giving their name, and removed by using the --del flag. and literally the one rule here: dependencies cannot be simultaneously added and removed in a single invocation. pick a lane bestie, you can't do both in one go π
π Adding dependencies pinned to external sources
When a single crate name is accompanied by an --use PATH|URL argument, the crate is always fulfilled for any required version by the sources found at the given target.
An optional reference can be specified with --commit; the pin will be frozen at the commit currently matching the reference. Alternatively, a branch to track can be specified with --branch.
Use alr update to refresh the tracking pin contents. π
π Adding dependencies from a GPR file
The project file given with --from will be scanned looking for comments that contain the sequence 'alr with'. These will be processed individually as if they had been given in the command line, starting with no dependencies. That is, only dependencies given in the GPR file will be preserved.
Example of GPR file contents:
with "libhello"; -- alr with libhello
Version selection syntax (global policy applies within the allowed version subsets):
crateβ Newest/oldest versioncrate=versionβ Exact versioncrate^versionβ Major-compatible versioncrate~versionβ Minor-compatible version
π SEE ALSO π
alr(1), alr-get(1), alr-index(1), alr-init(1), alr-pin(1), alr-search(1), alr-show(1), alr-update(1), gprbuild(1)
π AUTHOR π
Generated with generate-man from Alire execution
and that's a wrap, gorgeous π«Ά this was Alire 1.2, dated Aug 3, 2022 β no cap, slay, periodt. β¨
π¦ where this page comes from
- debian trixie: alire 1.2.1-2.1+b1 Β· GPL-3.0-or-later
- ubuntu questing: alire 1.2.1-2.1
- ubuntu resolute: alire 1.2.1-2.1build1 Β· GPL-3.0-or-later
- ubuntu stonking: alire 1.2.1-2.1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms