Skip to content

bj auth

Authenticate bj with Bitbucket and Jira.

Synopsis

bj auth <command> [OPTIONS]

Description

bj stores two independent credentials, one for Bitbucket and one for Jira, because the two products use separate API tokens. Tokens go to the OS keyring by default, or a 0600 file with --insecure-storage. See the environment guide for the BJ_*_TOKEN overrides.

Commands

Command Description
login Log in to Bitbucket and/or Jira with API tokens (Basic auth).
status Show which backends are configured and validate the stored tokens.
logout Remove stored credentials for one or both backends.
token Print the stored token for a backend (for scripting).
setup-git Configure git to authenticate bitbucket.org HTTPS using your bj token.
git-credential Git credential helper: emit the Bitbucket token for bitbucket.org (get only).

See also