Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion fern/products/cli-api-reference/pages/cli-get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,31 @@ The Fern CLI lets you initialize projects, validate API definitions, preview cha

## Installation

<Steps>
<Step title="Check prerequisites">

The Fern CLI requires [Node.js](https://nodejs.org/) version 18 or higher and npm version 8.6.0 or higher (ships with Node.js 18).

```bash
node -v # Must be v18.0.0 or higher
```

If your version is below the minimum, [download the latest Node.js LTS](https://nodejs.org/) which includes a compatible npm version.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[FernStyles.Current] Avoid time-relative terms like 'latest' that become outdated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'LTS' has no definition.


</Step>

<Step title="Install the Fern CLI">

Run the following command to install the Fern CLI globally from [npm](https://www.npmjs.com/):

```bash
npm install -g fern-api
fern -v
fern -v # Verify the installation
```

</Step>
</Steps>

<Accordion title="Install locally as a project dependency">

If you prefer to manage Fern as a project dependency or are working in an environment with limited internet connectivity, install the CLI locally:
Expand Down
Loading