1## git-bug bridge new
 2
 3Configure a new bridge
 4
 5### Synopsis
 6
 7Configure 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 new [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 new \
51    --name=default \
52    --target=github \
53    --owner=$(OWNER) \
54    --project=$(PROJECT) \
55    --token=$(TOKEN)
56
57# For Launchpad
58git bug bridge new \
59    --name=default \
60    --target=launchpad-preview \
61    --url=https://bugs.launchpad.net/ubuntu/
62
63# For Gitlab
64git bug bridge new \
65    --name=default \
66    --target=github \
67    --url=https://github.com/michaelmure/git-bug \
68    --token=$(TOKEN)
69```
70
71### Options
72
73```
74  -n, --name string         A distinctive name to identify the bridge
75  -t, --target string       The target of the bridge. Valid values are [github,gitlab,jira,launchpad-preview]
76  -u, --url string          The URL of the remote repository
77  -b, --base-url string     The base URL of your remote issue tracker
78  -l, --login string        The login on your remote issue tracker
79  -c, --credential string   The identifier or prefix of an already known credential for your remote issue tracker (see "git-bug bridge auth")
80      --token string        A raw authentication token for the remote issue tracker
81      --token-stdin         Will read the token from stdin and ignore --token
82  -o, --owner string        The owner of the remote repository
83  -p, --project string      The name of the remote repository
84      --non-interactive     Do not ask for user input
85  -h, --help                help for new
86```
87
88### SEE ALSO
89
90* [git-bug bridge](git-bug_bridge.md)	 - List bridges to other bug trackers
91