1 | # Bearer CLI
|
2 |
|
3 | ## Installation
|
4 |
|
5 | ```bash
|
6 | $ npm install @bearer/bearer-cli
|
7 | ```
|
8 |
|
9 | ## Usage
|
10 |
|
11 | ```bash
|
12 | $ echo OrgId=4l1c3 > ~/.bearerrc
|
13 | $ bearer new attachPullRequest && cd attachPullRequest
|
14 | $ bearer generate searchRepositories --type GetCollection
|
15 | $ bearer generate getPullRequest --type GetResource
|
16 | $ bearer deploy
|
17 | ```
|
18 |
|
19 | ## Commands list
|
20 |
|
21 | ### Generators
|
22 |
|
23 | **Generate a new integration\***
|
24 |
|
25 | ```bash
|
26 | $ bearer new attachPullRequest
|
27 | ```
|
28 |
|
29 | **Generate a new func of type collection**
|
30 |
|
31 | ```bash
|
32 | $ bearer generate getRepositories --type=GetCollection
|
33 | ```
|
34 |
|
35 | ### Deploy
|
36 |
|
37 | **Deploy implemented integration**
|
38 |
|
39 | ```bash
|
40 | $ bearer deploy
|
41 | ```
|
42 |
|
43 | To deploy to dev env use:
|
44 |
|
45 | ```bash
|
46 | $ BEARER_ENV=dev bearer deploy
|
47 | ```
|