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# For Github
 48git bug bridge configure \
 49    --%!s(int=0)= \
 50    --%!s(int=1)= \
 51    --%!s(int=2)= \
 52    --%!s(int=3)= \
 53    --%!s(int=4)= \
 54    --%!s(int=5)= \
 55
 56
 57# For Gitlab
 58git bug bridge configure \
 59    --%!s(int=0)= \
 60    --%!s(int=1)= \
 61    --%!s(int=2)= \
 62    --%!s(int=3)= \
 63    --%!s(int=4)= \
 64
 65
 66# For Jira
 67git bug bridge configure \
 68    --%!s(int=0)= \
 69    --%!s(int=1)= \
 70    --%!s(int=2)= \
 71    --%!s(int=3)= \
 72
 73
 74# For Launchpad-Preview
 75git bug bridge configure \
 76    --%!s(int=0)= \
 77    --%!s(int=1)= \
 78
 79```
 80
 81### Options
 82
 83```
 84  -n, --name string         A distinctive name to identify the bridge
 85  -t, --target string       The target of the bridge. Valid values are [github,gitlab,jira,launchpad-preview]
 86  -u, --url string          The URL of the remote repository
 87  -b, --base-url string     The base URL of your remote issue tracker
 88  -l, --login string        The login on your remote issue tracker
 89  -c, --credential string   The identifier or prefix of an already known credential for your remote issue tracker (see "git-bug bridge auth")
 90      --token string        A raw authentication token for the remote issue tracker
 91      --token-stdin         Will read the token from stdin and ignore --token
 92  -o, --owner string        The owner of the remote repository
 93  -p, --project string      The name of the remote repository
 94  -h, --help                help for configure
 95```
 96
 97### SEE ALSO
 98
 99* [git-bug bridge](git-bug_bridge.md)	 - Configure and use bridges to other bug trackers.
100