# CLI | Waitlyze Docs

> Create signups, look up subscriber status, award referral points, and call the REST API v1 from the command line with the official Waitlyze CLI on npm.

Canonical: https://waitlyze.com/docs/cli


The Waitlyze CLI is the official [`waitlyze` package on npm](https://www.npmjs.com/package/waitlyze). It wraps the public signup endpoints and the REST API v1 in a single zero-dependency command for shell scripts, CI, and AI agents. It requires Node 18 or later.

## Install [#install]

```sh
npm install -g waitlyze
```

Or run it without installing:

```sh
npx waitlyze@latest --help
```

## Authenticate [#authenticate]

The CLI uses the same scoped keys as the API. Create one in Settings → [API keys](/docs/api-keys), then export it once:

```sh
export WAITLYZE_API_KEY=wl2_...
```

You can also pass it per command with `--api-key`. Commands that read waitlist data need a key with `waitlist:read`; commands that create signups or award points need `waitlist:write`.

## Commands [#commands]

### Create a signup [#create-a-signup]

```sh
waitlyze signup dev@example.com --waitlist <waitlistId> --ref FRIEND_CODE
```

`--waitlist` takes the waitlist ID. Add `--name` for a display name or `--marketing-consent` to opt the subscriber into broadcast email. Retries are safe: the same email replays the existing signup instead of creating a duplicate.

### Check subscriber status [#check-subscriber-status]

```sh
waitlyze status dev@example.com --waitlist <waitlistId>
```

Returns live position, points, referral count, and verification state—the same data the [Lookup signup](/docs/api/lookup-signup) endpoint returns.

### Award custom event points [#award-custom-event-points]

```sh
waitlyze points dev@example.com --event webinar-attendee --waitlist <waitlistId>
```

The event must match a custom event configured on the waitlist. Add `--idempotency-key` so retries cannot double-award points. See [Award points](/docs/api/award-points).

### Call any v1 endpoint [#call-any-v1-endpoint]

```sh
waitlyze workspaces
waitlyze request GET /api/v1/waitlists
waitlyze request POST /api/v1/waitlists --data '{"name":"Beta launch"}'
```

`request` passes the method, path, and JSON body straight to the REST API and prints the JSON response—useful for endpoints without a dedicated command.

## Test against a self-hosted instance [#test-against-a-self-hosted-instance]

Waitlyze is open source and ships a `compose.yaml` for Docker. Point the CLI at your own instance instead of the hosted service:

```sh
waitlyze --base-url http://localhost:3000 status dev@example.com --waitlist <waitlistId>
```

`WAITLYZE_BASE_URL` sets the same target through the environment.

<Callout title="Prefer MCP for interactive agents?">
For AI assistants that hold a conversation—Claude Code, Cursor, Codex—use the [MCP server](/docs/mcp) instead. The CLI is the better fit for shell scripts, CI jobs, and one-off commands.
</Callout>

## See also [#see-also]

- [API reference](/docs/api/reference)—endpoints, scopes, rate-limit headers, and versioning policy
- [Create signup](/docs/api/create-signup)—the endpoint `signup` wraps
- [API keys](/docs/api-keys)—scopes, rotation, and expiry

## Related Links
- [API Reference](https://waitlyze.com/docs/api/reference) - REST API endpoints
- [Embed Widget](https://waitlyze.com/docs/embed) - Embed instructions
- [Waitlyze Home](https://waitlyze.com/) - Product overview
