---
title: wpe auth login
description: Login to the WP Engine Headless CLI
url: https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/auth/login/
image: https://developers.wpengine.com/og/docs/headless-platform/reference/cli/wpe/auth/login.png
---

# wpe auth login

## Description

Login to the WP Engine Headless CLI

## Usage

Terminal window

```bash
$ wpe auth login [$LOGIN_PROVIDER]
```

## Extended Description

The `wpe auth login` is how you provide the WP Engine Headless CLI access to your WP Engine Cloud Platform account as well as your GitHub account. There is a two-step process. First you login to your WP Engine Cloud Platform account, then you login using OAuth to your GitHub account. The reason the CLI needs access to your WP Engine Cloud Platform account is because it will deploy applications into that account. The CLI needs access to your GitHub account because it will deploy code stored in a GitHub repository that you specify.

## Options

```
--help, -h    Help for login
```

## Examples

First, log in to your WP Engine account:

Terminal window

```bash
$ wpe auth login
```

After you’ve successfully logged in, connect your GitHub account:

Terminal window

```bash
$ wpe auth login github
```

## Was this helpful?

Thanks for the feedback!

```json
{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://developers.wpengine.com/#website","name":"WP Engine Product Documentation","url":"https://developers.wpengine.com/","description":"Resources for developing, deploying, and scaling on WP Engine.","inLanguage":"en-US","keywords":["API documentation","product documentation","headless WordPress","managed WordPress hosting"],"publisher":{"@id":"https://wpengine.com/#organization"}}]}
```
