이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
bma is one binary for macOS and Linux (arm64, x86_64): the command line of
the BMA API, and the program that connects your computer to BMA as a BYO
executor.
Install
bma upgrade replaces it with the latest release (brew upgrade bma for a
Homebrew install); bma uninstall removes it.
Sign in
bma login prints a code and opens the dashboard. Check that the computer
and the code match, choose the organization and workspace, and approve.
bma receives a personal access token named “bma CLI on <computer>”; revoke
it in the dashboard under your profile. On a machine without a browser, add
--no-browser and open the printed link elsewhere.
With an organization API key instead:
bma auth status shows the profile, where the credential comes from and
whether the API accepts it.
First commands
list, get, create, update, delete, or the
action, e.g. archive). Path ids are arguments; query parameters and body
fields are flags; --body @request.json gives the whole body. bma <group> --help lists the commands of a group; the command reference
lists them all.
Profiles
A profile is one deployment and scope:~/.config/bma/config.yaml keeps its
API origin, organization and workspace (never a secret). Credentials are kept
in the login keychain on macOS, else in ~/.config/bma/credentials.json
(readable by you only).
--api-key > BMA_API_KEY > the profile’s credential;
--api-url/BMA_BASE_URL and --workspace/BMA_WORKSPACE_ID override one
setting; --profile/BMA_PROFILE selects the profile.