# Fern Definition and CLI

**Canonical:** https://apis.io/apis/fern-api/fern-api-definition-cli/  
**Provider:** Fern — https://apis.io/providers/fern-api/  
**Documentation:** https://buildwithfern.com/learn/cli-api-reference/cli-reference/commands

Fern Definition and CLI is one of 5 APIs that [Fern](https://apis.io/providers/fern-api/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include CLI, API Design, API Lifecycle, and Developer Tools. The published artifact set on APIs.io includes API documentation and an API reference.

Capability area covering Fern's open-source (Apache-2.0) command-line interface and the proprietary Fern Definition API-description format. Core commands include `fern init`, `fern check`, `fern generate`, `fern login`, `fern token`, `fern export`, and `fern docs dev`. Endpoints are modeled from the CLI surface, not a hosted REST API.

## Machine-readable artifacts (3)

- **Documentation** — https://buildwithfern.com/learn/cli-api-reference/cli-reference/commands
- **APIReference** — https://buildwithfern.com/learn/api-definitions/openapi/authentication
- **SourceCode** — https://github.com/fern-api/fern

## Other Fern APIs (4)

- [Fern SDK Generation](https://apis.io/apis/fern-api/fern-api-sdk-generation/)
- [Fern API Documentation](https://apis.io/apis/fern-api/fern-api-documentation/)
- [Fern Ask API](https://apis.io/apis/fern-api/fern-api-ask-api/)
- [Fern Website Sources API](https://apis.io/apis/fern-api/fern-api-website-sources-api/)

## Tags

CLI, API Design, API Lifecycle, Developer Tools

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/fern-api/fern-api-definition-cli/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/fern-api/.
