Last updated

login

Introduction

Use the login command to authenticate to the API registry.

When you log in, the preview-docs command starts a preview server using Redocly API reference docs with all of the premium features. Users who are not logged in see a Redoc community edition version of their documentation.

Also, you can access your members-only (private) API descriptions in the Redocly registry, and use the push command.

If you're having issues with the login command, use the --verbose option to display a detailed error trace (if any).

Usage

Note

Go ahead and generate a personal API key; this key is needed to log in.

redocly login [--help] [--verbose] [--version]

redocly login --verbose

Options

OptionTypeDescription
--configstringSpecify path to the config file.
--helpbooleanShow help.
--region, -rstringSpecify which region to use when logging in. Supported values: us, eu. Read more about configuring the region.
--verbosebooleanInclude additional output.
--versionbooleanShow version number.

Examples

  1. Successful login
  2. Failed login
redocly login
  🔑 Copy your API key from https://app.redocly.com/profile and paste it below:

  Logging in...
  Authorization confirmed. ✅