#
Command Line Interface
BDeploy provides a rich CLI which allows automation of most interactions with BDeploy, e.g. for use in build pipelines, etc.
The same binaries used to run a BDeploy server provide a set of commands along with available options. This chapter describes the available commands. The options are well-described when calling the according command with the --help
option.
#
Common Options
#
BDeploy CLI
#
Initialization and local Configuration Management Commands
#
Local Session and Scripting Commands
#
Product Management Commands
#
Remote Server Management Commands
#
Server Commands
#
Utility Commands
#
BHive CLI
BHive is the underlying storage used by BDeploy. BDeploy serves BHives for all minions (master and node), and has additional BHives per Instance Group and Software Repository on the master.
BHive itself does not know about BDeploy, it is 'just' a dumb storage backend which is responsible for de-duplicated, distributed, fail-tolerant (failure-recoverable) storage of file contents.
Much like Git, BHive only knows two commands that actually perform remote communication: fetch
and push
. All other commands are performing their work locally.
#
Analysis and Maintenance Commands
#
Filesystem Interaction Commands
#
Remote Server Interaction Commands
#
Server Commands
#
Launcher CLI
#
Environment Variables
BDeploy and BHive CLIs provide a set of environment variables that allow you to provide environment defaults for certain command line arguments.
Each command will include information for the according environment fallback in it's help output, for instance:
$ bdeploy bhive init --help
Help:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ init: Initializes an empty BHive │
├─────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────┬─────────┤
│ Argument │ Description │ Default │
├─────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────┤
│ --hive=ARG │ The directory to initialize as BHive (Environment variable 'BHIVE' is used as fallback if not given). │ │
└─────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────┘
Some common environment variables include (but are not limited to):