> ## 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.

# CLI

The Intuned CLI (`@intuned/cli`) is a command-line tool for developing, testing, deploying, and managing Intuned automation projects. It supports TypeScript and Python, and lets you manage deployed Projects, Runs, Jobs, and Auth Sessions from the terminal.

## Installation

Install the Intuned CLI globally with npm:

```bash theme={null}
npm install -g @intuned/cli
```

Verify the installation:

```bash theme={null}
intuned -v
```

> [!NOTE]
>
> Requires Node.js and npm.

## Authentication

The CLI supports two authentication methods:

1. **Browser-based login** — Run `intuned auth login` to authenticate via browser-based OAuth. Credentials are stored locally and reused across sessions.

2. **API key** — Set the `INTUNED_API_KEY` environment variable. Requires a workspace ID from the `INTUNED_WORKSPACE_ID` environment variable or `workspaceId` in your settings file.

If both are set, the API key takes priority.

> [!TIP]
>
> Use API key authentication for CI/CD pipelines and automated workflows. See [how to deploy with GitHub Actions](https://intunedhq.com/docs/main/03-how-to/manage/deploy-with-github-actions.md).

For full details on authentication methods and credentials storage, see [CLI configuration reference](https://intunedhq.com/docs/main/05-references/cli/configuration.md).

## Configuration

### Settings file

The CLI reads project settings from a file in the root of your project directory. Supported formats (checked in order):

* `Intuned.json`
* `Intuned.jsonc`

The settings file contains configurations used for development and deployment. For the full schema, see [Intuned.json reference](https://intunedhq.com/docs/main/05-references/intuned-json.md).

### Environment variables

Key environment variables for CLI configuration:

| Variable | Description |
| - | - |
| `INTUNED_API_KEY` | API key for authentication. Takes priority over browser-based login. |
| `INTUNED_WORKSPACE_ID` | Workspace ID. Required when using API key authentication if not set in the settings file. |
| `INTUNED_CHROMIUM_PATH` | Path to a custom Chromium executable for the dev browser. |

For the full list of environment variables, see [CLI configuration reference](https://intunedhq.com/docs/main/05-references/cli/configuration.md).

> [!NOTE]
>
> These are CLI configuration variables. For project-level environment variables and secrets used in your automations, see [Environment variables and secrets](https://intunedhq.com/docs/main/02-features/environment-variables-secrets.md).

## Key capabilities

### Local development

The `intuned dev` command group provides tools for developing and testing automations locally—run APIs, manage auth sessions, generate traces for debugging, and deploy your project when it's ready.

See [Local development](https://intunedhq.com/docs/main/02-features/local-development-cli.md) for a complete walkthrough.

> [!TIP]
>
> Make sure you install your project's dependencies before running development commands.

### Platform management

The `intuned platform` command group lets you manage projects on the Intuned platform. You can view and start Runs and Jobs, manage Auth Sessions and Environment Variables, and more.

See [Platform reference](https://intunedhq.com/docs/main/05-references/cli/platform.md) for available commands.

### Project scaffolding

Create a new Intuned project with a template:

```bash theme={null}
intuned dev init
```

This walks you through selecting a language, choosing a template, naming your project, and connecting to your workspace. See [Local development](https://intunedhq.com/docs/main/02-features/local-development-cli.md#create-a-project) for details.

## Related resources

> [card] [Local development](https://intunedhq.com/docs/main/02-features/local-development-cli.md)
>
> Complete guide to local development workflow

> [card] [CLI reference](https://intunedhq.com/docs/main/05-references/cli/overview.md)
>
> Full command reference and usage details

> [card] [CLI configuration](https://intunedhq.com/docs/main/05-references/cli/configuration.md)
>
> Settings files, environment variables, and authentication

> [card] [Quickstart](https://intunedhq.com/docs/main/00-getting-started/quickstarts/scraper.md)
>
> Build your first automation

> [card] [Intuned.json reference](https://intunedhq.com/docs/main/05-references/intuned-json.md)
>
> Full settings file schema and options


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.