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

# Overview

The Intuned CLI `@intuned/cli` provides command-line access to develop, test, deploy and manage Intuned automation projects.

## Commands

* [Auth](#auth) — Manage authentication (login, logout, whoami).
* [Platform](./platform) — Manage projects on Intuned platform.
* [Dev](./dev) — Develop and test automations locally.
* [Configuration](./configuration) — Settings file, environment variables, and authentication.

***

## Auth

The `intuned auth` command group manages authentication.

### Login

Login to your Intuned account via browser-based OAuth. This login is reused across your machine.

```txt theme={null}
intuned auth login
```

<ParamField body="-h, --help">
  Display help for command. Will not execute the command.
</ParamField>

<Note>
  Login has no effect when `INTUNED_API_KEY` environment variables are set.
</Note>

### Logout

Logout from your Intuned account.

```txt theme={null}
intuned auth logout
```

<ParamField body="-h, --help">
  Display help for command. Will not execute the command.
</ParamField>

### Whoami

Display current authentication information including the authentication method, workspace, and role.

```txt theme={null}
intuned auth whoami
```

The output varies by authentication method:

* **Browser-based login** — Email, workspace ID, workspace name, and role.
* **API key** (`INTUNED_API_KEY`) — Workspace ID and workspace name.
* **Not logged in** — Instructions for how to authenticate.

Use `--json` for machine-readable output:

```txt theme={null}
intuned auth whoami --json
```

<ParamField body="-h, --help">
  Display help for command. Will not execute the command.
</ParamField>

***

## Authentication

The CLI supports two authentication methods:

1. **Browser-based Login** (`intuned auth login`) — Browser-based OAuth login.
2. **API Key** (`INTUNED_API_KEY` environment variable) — Requires workspace ID from settings file (`workspaceId`) or `INTUNED_WORKSPACE_ID` env var.

Priority: API Key > Browser-based Login > Error

## Reference

* [Dev reference](./dev) — Develop and test automations locally.
* [Platform reference](./platform) — Manage projects on Intuned platform.
* [Configuration](./configuration) — Settings file, environment variables, and authentication.
