---
title: "wendy cloud login"
description: "Sign in to Wendy Cloud"
---

## Syntax

```sh
wendy cloud login [flags]
```

## Examples

```sh
wendy cloud login --help
```

## Arguments

No positional arguments are declared in the command synopsis.

## Flags

Flags below include inherited options. Types and defaults come from the CLI source. An empty default means no value is configured.

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--auth` | string | `https://auth.wendy.dev` | wendy-auth base URL for browser login and --email discovery |
| `--client-id` | string | `wendy-cli` | public DPoP OAuth client ID registered in wendy-auth |
| `--cloud` | string | (empty) | Cloud dashboard URL |
| `--cloud-grpc` | string | (empty) | Cloud API endpoint |
| `--device` | string | (empty) | Target device `host` (hostname, IP, or host:port); 'wendy run' accepts a comma-separated list to deploy one build to several devices (needs a remote build host and --detach). Defaults to $WENDY_DEVICE, then the saved default device |
| `--email` | string | (empty) | Email address for explicit organization discovery with wendy-auth |
| `--issuer` | string | (empty) | wendy-auth realm issuer URL, e.g. https://auth.wendy.dev/realms/acme |
| `--json` | bool | `false` | Output in JSON format |
| `--pki-identity-endpoint` | string | `https://identity.pki.wendy.dev/v1/identity/certificate` | Certificate service URL for personal sign-in |
| `--pki-resource` | string | `https://pki.wendy.sh/identity` | Certificate service authentication audience for browser login |
| `--print-claims` | bool | `false` | Print the decoded access-token claims after login (used with --issuer) |
| `--resource` | string | (empty) | RFC 8707 API resource indicator (used with OIDC login) |
| `--service-account` | string | (empty) | Service-account key file for headless login (or set WENDY_SERVICE_ACCOUNT_KEY to its contents) |

## Output

Output depends on the operation and selected target. [Command behavior and detailed examples](../../../../advanced/clients/wendy-cli/commands/cloud/login/).

## JSON output

The global `--json` option requests machine-readable output. The CLI also selects JSON mode when no interactive terminal is attached. Support and payloads are command-specific; this flag does not guarantee a single JSON document for commands that stream logs or invoke build tools. Consult Details before parsing command output.

## Exit codes

The CLI entry point returns `0` on success and for its user-cancelled or default-cleared results. Other returned errors exit with `1` and print a diagnostic to stderr. Some operations may terminate through subprocess or signal handling; do not infer application health from the CLI exit code alone.

## Common errors

Check argument values and flag combinations against the synopsis above. For discovery, build, port, and readiness failures, see [deployment troubleshooting](../../../../errors/). Command-specific constraints are in Details.

## See also

- [wendy cloud](../../../../reference/cli/cloud/)
- [CLI conventions and configuration](../../../../reference/)

## Details

Sign in to Wendy Cloud in your browser, choose your organization, then return to the terminal. Wendy saves the sign-in for later commands. Pass --email to supply your email first.
For scripts, use --service-account &lt;key-file&gt; or WENDY_SERVICE_ACCOUNT_KEY: no browser or terminal is needed.

[Command behavior and detailed examples](../../../../advanced/clients/wendy-cli/commands/cloud/login/)
