You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+53-12Lines changed: 53 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,28 +15,69 @@ Please note that this project is released with a [Contributor Code of Conduct][c
15
15
**We don't currently accept pull requests that directly modify the description artifacts found in this repository.** If you have feedback on the descriptions or have found a mismatch between the behavior that is described in this repo and the runtime behavior of the API, please [open an issue](https://github.com/intercom/Intercom-OpenAPI/issues/new).
16
16
17
17
### Using Fern
18
-
Our SDKs are generated from our OpenAPI spec using (Fern)[https://buildwithfern.com/learn/sdks/overview/introduction].
19
-
If you making changes to the OpenAPI spec, you can use the Fern CLI to validate your changes and preview the impact on the generated SDKs. Here are some useful commands
20
18
21
-
Install fern: `npm install -g fern-api`
19
+
Our SDKs are generated from our OpenAPI spec using [Fern](https://buildwithfern.com/learn/sdks/overview/introduction).
22
20
23
-
Validate the spec: `fern check`
21
+
If you're making changes to the OpenAPI spec, you can use the Fern CLI to validate your changes and preview the impact on the generated SDKs.
24
22
25
-
Preview an sdk: `fern generate --preview --group`
23
+
#### Installation
26
24
27
-
You can find the appropriate group name in the (generators.yml)[./fern/generators.yml] file. For example `python-sdk` is the group name for the python sdk.
25
+
```bash
26
+
npm install -g fern-api
27
+
```
28
28
29
-
- Generate the Fern definition from the OpenAPI spec
29
+
#### Common Commands
30
30
31
-
`fern write-definition`
31
+
**Validate the spec:**
32
+
```bash
33
+
fern check
34
+
```
32
35
33
-
For more details on how to use Fern, refer to the docs for the [Fern CLI](https://buildwithfern.com/learn/cli-api-reference/cli-reference/overview) or [Fern SDK](https://buildwithfern.com/learn/sdks/overview/introduction) products.
36
+
**Preview an SDK:**
37
+
```bash
38
+
fern generate --preview --group <group-name>
39
+
```
34
40
35
-
You can also use help commands within the cli to see available commands and options.
41
+
#### ⚠️ Important Warning
36
42
37
-
`fern help`
43
+
**Be careful not to run `fern generate` without the `--preview` flag in your local development environment!**
38
44
39
-
`fern generate help`
45
+
Running `fern generate` without the preview flag will automatically submit pull requests to the SDK's GitHub repository. This command is intended for use in CI/CD pipelines only.
46
+
47
+
**❌ Don't do this locally:**
48
+
```bash
49
+
fern generate --group <group-name>
50
+
```
51
+
52
+
**✅ Always use preview mode for local development:**
53
+
```bash
54
+
fern generate --preview --group <group-name>
55
+
```
56
+
57
+
> **Note:** You can find the appropriate group name in the [`generators.yml`](./fern/generators.yml) file. For example, `python-sdk` is the group name for the Python SDK.
58
+
59
+
**Generate the Fern definition from the OpenAPI spec:**
60
+
```bash
61
+
fern write-definition
62
+
```
63
+
64
+
#### Help Commands
65
+
66
+
Get general help:
67
+
```bash
68
+
fern help
69
+
```
70
+
71
+
Get help for the generate command:
72
+
```bash
73
+
fern generate help
74
+
```
75
+
76
+
#### Additional Resources
77
+
78
+
For more details on how to use Fern, refer to the documentation for:
0 commit comments