Overview
Manage and configure your Fern projects, all from the command line.
Installing Fern CLI
Run the following command to download and install Fern CLI from the npm registry.
CLI Quick Start
Get started with these commonly used commands:
Common Commands
The “default SDK group” refers to the group marked as default in your generators.yml
. Learn more about default groups.
Common Workflows
Setting up Docs
- Initialize a new docs project:
- Preview locally while making changes:
- When ready to preview or publish:
Setting up SDK generation
- Initialize a new SDK project:
-
Configure your generators in
generators.yml
-
Generate SDKs:
During development, use --preview
to test your changes locally before publishing.
The preview SDK will be generated into the .preview/
folder.