Migration from bash version
Table of Contents
If you were using the previous bash-based version of BMC, here is what changed and how to migrate.
Steps #
- Install the new binary (same name:
bmc) - Run
bmc install-shell-integration— replaces thesource bmc profselpattern - Create
~/.config/bmc/config.json— replaces~/.config/bmc/config.env - Run
bmc doctorto verify setup
Breaking changes #
| Old | New |
|---|---|
source bmc profsel | eval "$(bmc profsel)" — handled automatically by the shell wrapper |
~/.config/bmc/config.env | ~/.config/bmc/config.json |
bmc gencompletions | bmc completion bash|zsh (Cobra built-in) |
Config migration #
Old config.env:
BMC_MFA_ENABLED=true
BMC_MFA_TOTP_SCRIPT="rbw get my-mfa --field totp"
New config.json:
{
"mfa": {
"enabled": true,
"totp_script": "rbw get my-mfa --field totp"
}
}
See the full configuration reference for all available fields.