git-bug_bridge_new.md

 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/git-bug/git-bug
27
28[0]: Another project
29
30Select option: 1
31
32[1]: user provided token
33[2]: interactive token creation
34Select option: 1
35
36You can generate a new token by visiting https://github.com/settings/tokens.
37Choose 'Generate new token' and set the necessary access scope for your repository.
38
39The access scope depend on the type of repository.
40Public:
41	- 'public_repo': to be able to read public repositories
42Private:
43	- 'repo'       : to be able to read private repositories
44
45Enter token: 87cf5c03b64029f18ea5f9ca5679daa08ccbd700
46Successfully configured bridge: default
47
48# For GitHub
49git bug bridge new \
50    --name=default \
51    --target=github \
52    --owner=example-owner
53    --project=example-repo \
54    --token=$TOKEN
55
56# For Launchpad
57git bug bridge new \
58    --name=default \
59    --target=launchpad-preview \
60    --url=https://bugs.launchpad.net/ubuntu/
61
62# For Gitlab
63git bug bridge new \
64    --name=default \
65    --target=gitlab \
66    --url=https://github.com/example-org/example-repo \
67    --token=$TOKEN
68```
69
70### Options
71
72```
73  -n, --name string         A distinctive name to identify the bridge
74  -t, --target string       The target of the bridge. Valid values are [github,gitlab,jira,launchpad-preview]
75  -u, --url string          The URL of the remote repository
76  -b, --base-url string     The base URL of your remote issue tracker
77  -l, --login string        The login on your remote issue tracker
78  -c, --credential string   The identifier or prefix of an already known credential for your remote issue tracker (see "git-bug bridge auth")
79      --token string        A raw authentication token for the remote issue tracker
80      --token-stdin         Will read the token from stdin and ignore --token
81  -o, --owner string        The owner of the remote repository
82  -p, --project string      The name of the remote repository
83      --non-interactive     Do not ask for user input
84  -h, --help                help for new
85```
86
87### SEE ALSO
88
89* [git-bug bridge](git-bug_bridge.md)	 - List bridges to other bug trackers
90