Skip to content

Commit c28b3ac

Browse files
committed
restyle
1 parent f4d29d1 commit c28b3ac

File tree

1 file changed

+53
-12
lines changed

1 file changed

+53
-12
lines changed

CONTRIBUTING.md

Lines changed: 53 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,69 @@ Please note that this project is released with a [Contributor Code of Conduct][c
1515
**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).
1616

1717
### 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
2018

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).
2220

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.
2422

25-
Preview an sdk: `fern generate --preview --group`
23+
#### Installation
2624

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+
```
2828

29-
- Generate the Fern definition from the OpenAPI spec
29+
#### Common Commands
3030

31-
`fern write-definition`
31+
**Validate the spec:**
32+
```bash
33+
fern check
34+
```
3235

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+
```
3440

35-
You can also use help commands within the cli to see available commands and options.
41+
#### ⚠️ Important Warning
3642

37-
`fern help`
43+
**Be careful not to run `fern generate` without the `--preview` flag in your local development environment!**
3844

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:
79+
- [Fern CLI](https://buildwithfern.com/learn/cli-api-reference/cli-reference/overview)
80+
- [Fern SDK](https://buildwithfern.com/learn/sdks/overview/introduction)
4081

4182

4283
## Contributions to other files in the repository

0 commit comments

Comments
 (0)