What are different ways of setting the Jira API token? #356
Locked
ankitpokhrel
announced in
FAQs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The tool currently supports 3 ways to set your Jira API token viz: environment variable, the .netrc file, and a keychain password manager. All of these steps are described below.
1. Environment variable
Once you get the token, export it to your shell as a
JIRA_API_TOKEN
variable. Add it to your shell configuration file, for instance,$HOME/.bashrc
so that the variable is always available.If you are using a Fish shell , there is a different way to set shell variables. Please follow the instructions accordingly.
2. The .netrc file
Add an entry for your jira host in the .netrc file.
3. Keychain password manager
Add a new password item entry with an item name
jira-cli
and account name as your jira username/email inlogin
or custom keychains.iCloud
keychain is not supported.Freedesktop Secret service (Linux)
See: #566
You need to have a login collection exposed through the Dbus Secret Service API, as go-keyring only search in that one.
To add your token, use:
Beta Was this translation helpful? Give feedback.
All reactions