> ## Documentation Index
> Fetch the complete documentation index at: https://jetemail.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Log in, send an email, list a domain. Three minutes.

You'll need a JetEmail account and an `api_…` key from the [dashboard](https://dash.jetemail.com).

## 1. Log in

```sh theme={null}
jetemail login
```

`login` prompts for your `api_…` key, validates it against the API, and saves it to a local config file (chmod 600 on Unix). It also offers to save a `transactional_…` key if you plan to use `email send`.

You can pass keys non-interactively:

```sh theme={null}
jetemail login --api-key api_xxxxxxxx --transactional-key transactional_xxxxxxxx
```

See [Authentication](/cli/authentication) for environment variables, profiles, and CI setups.

## 2. Send your first email

```sh theme={null}
jetemail send --to you@example.com \
              --from noreply@yourdomain.com \
              --subject "Hello from jetemail"
```

If the body flags aren't supplied, you'll be prompted for the missing fields. Pass `--html` or `--text` to fill the body:

```sh theme={null}
jetemail send --to alice@example.org \
              --from noreply@yourdomain.com \
              --subject "Welcome" \
              --html "<p>Hi <b>Alice</b></p>"
```

`jetemail send` is an alias for `jetemail email send`. See [`email`](/cli/commands/email) for the full set of flags (CC/BCC, headers, attachments, scheduling, idempotency keys).

## 3. List a domain

```sh theme={null}
jetemail outbound domains list
```

In a terminal you get a compact table. In a pipe (`| jq …`, CI logs, AI agents) you get pretty JSON on stdout:

```sh theme={null}
jetemail outbound domains list | jq '.[] | .domain'
```

## 4. Run the self-test

```sh theme={null}
jetemail doctor
```

Verifies your config file, API key, transactional key (if set), and that the API responds successfully.

## Where to go next

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/cli/authentication" arrow="true">
    Environment variables, login flow, `whoami`, logout.
  </Card>

  <Card title="Output formats" icon="code" href="/cli/output" arrow="true">
    `--json`, `--raw`, `--quiet`, terminal vs. pipe behaviour.
  </Card>

  <Card title="All commands" icon="list" href="/cli/commands/email" arrow="true">
    Full reference for every subcommand.
  </Card>

  <Card title="Live log tail" icon="rectangle-terminal" href="/cli/live-tail" arrow="true">
    Watch mail move through the pipeline live.
  </Card>
</CardGroup>
