1.nh
  2.TH "GIT-BUG" "1" "Apr 2019" "Generated from git-bug's source code" ""
  3
  4.SH NAME
  5git-bug-bridge-new - Configure a new bridge
  6
  7
  8.SH SYNOPSIS
  9\fBgit-bug bridge new [flags]\fP
 10
 11
 12.SH DESCRIPTION
 13Configure 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.
 14
 15
 16.SH OPTIONS
 17\fB-n\fP, \fB--name\fP=""
 18	A distinctive name to identify the bridge
 19
 20.PP
 21\fB-t\fP, \fB--target\fP=""
 22	The target of the bridge. Valid values are [github,gitlab,jira,launchpad-preview]
 23
 24.PP
 25\fB-u\fP, \fB--url\fP=""
 26	The URL of the remote repository
 27
 28.PP
 29\fB-b\fP, \fB--base-url\fP=""
 30	The base URL of your remote issue tracker
 31
 32.PP
 33\fB-l\fP, \fB--login\fP=""
 34	The login on your remote issue tracker
 35
 36.PP
 37\fB-c\fP, \fB--credential\fP=""
 38	The identifier or prefix of an already known credential for your remote issue tracker (see "git-bug bridge auth")
 39
 40.PP
 41\fB--token\fP=""
 42	A raw authentication token for the remote issue tracker
 43
 44.PP
 45\fB--token-stdin\fP[=false]
 46	Will read the token from stdin and ignore --token
 47
 48.PP
 49\fB-o\fP, \fB--owner\fP=""
 50	The owner of the remote repository
 51
 52.PP
 53\fB-p\fP, \fB--project\fP=""
 54	The name of the remote repository
 55
 56.PP
 57\fB--non-interactive\fP[=false]
 58	Do not ask for user input
 59
 60.PP
 61\fB-h\fP, \fB--help\fP[=false]
 62	help for new
 63
 64
 65.SH EXAMPLE
 66.EX
 67# Interactive example
 68[1]: github
 69[2]: gitlab
 70[3]: jira
 71[4]: launchpad-preview
 72
 73target: 1
 74name [default]: default
 75
 76Detected projects:
 77[1]: github.com/git-bug/git-bug
 78
 79[0]: Another project
 80
 81Select option: 1
 82
 83[1]: user provided token
 84[2]: interactive token creation
 85Select option: 1
 86
 87You can generate a new token by visiting https://github.com/settings/tokens.
 88Choose 'Generate new token' and set the necessary access scope for your repository.
 89
 90The access scope depend on the type of repository.
 91Public:
 92	- 'public_repo': to be able to read public repositories
 93Private:
 94	- 'repo'       : to be able to read private repositories
 95
 96Enter token: 87cf5c03b64029f18ea5f9ca5679daa08ccbd700
 97Successfully configured bridge: default
 98
 99# For GitHub
100git bug bridge new \\
101    --name=default \\
102    --target=github \\
103    --owner=example-owner
104    --project=example-repo \\
105    --token=$TOKEN
106
107# For Launchpad
108git bug bridge new \\
109    --name=default \\
110    --target=launchpad-preview \\
111    --url=https://bugs.launchpad.net/ubuntu/
112
113# For Gitlab
114git bug bridge new \\
115    --name=default \\
116    --target=gitlab \\
117    --url=https://github.com/example-org/example-repo \\
118    --token=$TOKEN
119.EE
120
121
122.SH SEE ALSO
123\fBgit-bug-bridge(1)\fP