git-bug_bridge_configure.md

  1## git-bug bridge configure
  2
  3Configure a new bridge.
  4
  5### Synopsis
  6
  7	Configure a new bridge by passing flags or/and using interactive terminal prompts. You can avoid all the terminal prompts by passing all the necessary flags to configure your bridge.
  8
  9```
 10git-bug bridge configure [flags]
 11```
 12
 13### Examples
 14
 15```
 16# Interactive example
 17[1]: github
 18[2]: gitlab
 19[3]: jira
 20[4]: launchpad-preview
 21
 22target: 1
 23name [default]: default
 24
 25Detected projects:
 26[1]: github.com/a-hilaly/git-bug
 27[2]: github.com/MichaelMure/git-bug
 28
 29[0]: Another project
 30
 31Select option: 1
 32
 33[1]: user provided token
 34[2]: interactive token creation
 35Select option: 1
 36
 37You can generate a new token by visiting https://github.com/settings/tokens.
 38Choose 'Generate new token' and set the necessary access scope for your repository.
 39
 40The access scope depend on the type of repository.
 41Public:
 42	- 'public_repo': to be able to read public repositories
 43Private:
 44	- 'repo'       : to be able to read private repositories
 45
 46Enter token: 87cf5c03b64029f18ea5f9ca5679daa08ccbd700
 47Successfully configured bridge: default
 48
 49# For Github
 50git bug bridge configure \
 51    --target=github \
 52    --login=$(LOGIN) \
 53    --owner=$(OWNER) \
 54    --project=$(PROJECT) \
 55    --token=$(TOKEN) \
 56    --url=$(URL) \
 57
 58
 59# For Gitlab
 60git bug bridge configure \
 61    --target=gitlab \
 62    --base-url=$(BASE URL) \
 63    --login=$(LOGIN) \
 64    --token=$(TOKEN) \
 65    --url=$(URL) \
 66
 67
 68# For Jira
 69git bug bridge configure \
 70    --target=jira \
 71    --base-url=$(BASE URL) \
 72    --login=$(LOGIN) \
 73    --project=$(PROJECT) \
 74
 75
 76# For Launchpad-Preview
 77git bug bridge configure \
 78    --target=launchpad-preview \
 79    --project=$(PROJECT) \
 80    --url=$(URL) \
 81
 82```
 83
 84### Options
 85
 86```
 87  -n, --name string         A distinctive name to identify the bridge
 88  -t, --target string       The target of the bridge. Valid values are [github,gitlab,jira,launchpad-preview]
 89  -u, --url string          The URL of the remote repository
 90  -b, --base-url string     The base URL of your remote issue tracker
 91  -l, --login string        The login on your remote issue tracker
 92  -c, --credential string   The identifier or prefix of an already known credential for your remote issue tracker (see "git-bug bridge auth")
 93      --token string        A raw authentication token for the remote issue tracker
 94      --token-stdin         Will read the token from stdin and ignore --token
 95  -o, --owner string        The owner of the remote repository
 96  -p, --project string      The name of the remote repository
 97  -h, --help                help for configure
 98```
 99
100### SEE ALSO
101
102* [git-bug bridge](git-bug_bridge.md)	 - Configure and use bridges to other bug trackers.
103