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