# list-projects

> Retrieve a paginated list of projects

Retrieve a paginated list of projects in your workspace. Results are ordered by project ID. When `hasMore` is true, pass the returned `cursor` to fetch the next page.

## Usage
```bash
unkey api projects list-projects [flags]
```
## Flags
<ParamField body="--limit" type="integer" default="100">Maximum number of projects to return per request. Must be between 1 and 100.</ParamField>
<ParamField body="--cursor" type="string">Pagination cursor from a previous response to fetch the next page.</ParamField>
<ParamField body="--search" type="string">Free-form text matching project ID, name, or slug, case-insensitively.</ParamField>
## Global Flags
| Flag | Type | Description |
|------|------|-------------|
| `--root-key` | string | Override root key (`$UNKEY_ROOT_KEY`) |
| `--api-url` | string | Override API base URL (default: `https://api.unkey.com`) |
| `--config` | string | Path to config file (default: `~/.unkey/config.toml`) |
| `--output` | string | Output format. Use `json` for raw JSON |
| `--body` | string | Send this JSON string as the request body. You cannot combine it with request-building flags. |
## Examples
```bash
unkey api projects list-projects --limit=25 --search=billing
```
See the [API reference](https://www.unkey.com/docs/api-reference/v2/projects/list-projects).
