b install
Install binaries and sync environment files. If no arguments are given, b installs all binaries and syncs all envs from the b.yaml configuration file. You can also install specific binaries or env files on-the-fly.
Alias
i
Usage
Examples
Install all from config
If a b.yaml file is present, this command will install all binaries and sync all env files listed in it.
Install a specific binary
Install the latest version of a specific binary.
Install a specific version
Append @<version> to the binary name to install a specific version.
Install any GitHub release
Use a full provider reference to install any binary from GitHub releases.
Install and add to config
Use the --add flag to install a binary and simultaneously add it to your b.yaml.
Force an installation
Use the --force flag to overwrite an existing binary.
Install with an alias
Use the --alias flag to install a binary under a different name. This is useful when you want to use a custom name for a binary while still using the original binary's implementation.
This installs renvsubst but makes it available as envsubst. The alias binary will:
- Download and install the original binary (
renvsubst) - Create the alias binary file (
envsubst) - Work with all commands like version detection and execution
- Show in listings with the alias relationship:
renvsubst (envsubst)
You can combine --alias with other flags:
Sync environment files (SCP syntax)
Use SCP-style syntax to sync files from upstream git repositories:
The SCP syntax is: <repo>[@<version>]:/<glob> [<dest>]
- repo — A git-cloneable reference (e.g.,
github.com/org/repo) - version (optional) — A git tag, branch, or commit to pin
- glob — A file pattern to match in the repository (e.g.,
manifests/**) - dest (optional) — Local directory for the synced files; defaults to the matched path structure
Flags
| Flag | Description |
|---|---|
--add | Add binary/env to b.yaml during install |
--alias | Install binary under a different name |
--fix | Pin the specified version in b.yaml |
-h, --help | help for install |
Global Flags
| Flag | Description |
|---|---|
-c, --config string | Path to configuration file (current: /home/fentas/github/fentas/b/.bin/b.yaml) |
--force | Force operations, overwriting existing binaries |
-q, --quiet | Quiet mode |
-v, --version | Print version information and quit |