From 56089ac3f075ca033b6da0417328cd080fa47889 Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Wed, 10 Sep 2025 15:47:43 -0400 Subject: [PATCH 1/2] document fern logout --- .../cli-api-reference/pages/commands.mdx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/fern/products/cli-api-reference/pages/commands.mdx b/fern/products/cli-api-reference/pages/commands.mdx index e5dea38d6..b8e287a47 100644 --- a/fern/products/cli-api-reference/pages/commands.mdx +++ b/fern/products/cli-api-reference/pages/commands.mdx @@ -10,6 +10,8 @@ hideOnThisPage: true | [`fern init`](#fern-init) | Create new Fern project from OpenAPI spec or scratch | | [`fern check`](#fern-check) | Validate API definition & configuration | | [`fern upgrade`](#fern-upgrade) | Update Fern CLI & generators to latest versions | +| [`fern login`](#fern-login) | Login to Fern CLI via GitHub or Google | +| [`fern logout`](#fern-logout) | Log out of the Fern CLI | ## Documentation Commands @@ -318,7 +320,7 @@ hideOnThisPage: true - Use `fern login` to login to the Fern CLI via GitHub. Logging in allows you + Use `fern login` to login to the Fern CLI via GitHub or Google. Logging in allows you join GitHub organizations, gain permissions, and contribute to projects. @@ -341,6 +343,21 @@ hideOnThisPage: true + + + Use `fern logout` to log out of the Fern CLI. This will clear your authentication + credentials and revoke access to your GitHub organizations and permissions. + + + ```bash + fern logout + ``` + + + After logging out, you'll need to run `fern login` again to access protected features. + + + Use `fern token `to generate a `FERN_TOKEN` specific to your organization defined From 294c65e499eee5fd9bd84c3580c6ab8e8fbe621f Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Wed, 10 Sep 2025 15:51:38 -0400 Subject: [PATCH 2/2] add link --- fern/products/cli-api-reference/pages/commands.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fern/products/cli-api-reference/pages/commands.mdx b/fern/products/cli-api-reference/pages/commands.mdx index b8e287a47..8437abd49 100644 --- a/fern/products/cli-api-reference/pages/commands.mdx +++ b/fern/products/cli-api-reference/pages/commands.mdx @@ -354,7 +354,7 @@ hideOnThisPage: true ``` - After logging out, you'll need to run `fern login` again to access protected features. + After logging out, you'll need to run [`fern login`](#fern-login) again to access protected features.