diff --git a/fern/products/cli-api-reference/pages/cli-get-started.mdx b/fern/products/cli-api-reference/pages/cli-get-started.mdx index 11104d4e6..e70011984 100644 --- a/fern/products/cli-api-reference/pages/cli-get-started.mdx +++ b/fern/products/cli-api-reference/pages/cli-get-started.mdx @@ -10,13 +10,31 @@ The Fern CLI lets you initialize projects, validate API definitions, preview cha ## Installation + + + +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. + + + + + 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 ``` + + + If you prefer to manage Fern as a project dependency or are working in an environment with limited internet connectivity, install the CLI locally: