# CLI Reference

Install and operate MonetizeKit from scripts and terminals.

<!-- docs-source -->
Source: https://learning.monetizekit.app/docs/tools/cli
<!-- /docs-source -->

```bash
npm i -g @monetizekit/cli
```

### Common commands

```bash
monetizekit auth login
```

Authenticate the local CLI session

```bash
monetizekit auth service-token create docs-ci --scopes customers:view --ttl 30d
```

Create scoped service tokens

```bash
monetizekit workspace list
```

List accessible workspaces

```bash
monetizekit workspace use <workspace>
```

Set active workspace context

```bash
monetizekit catalog import --dir ./catalog
```

Import catalog-as-code changes

Full details: see the `monetizekit-cli` spec deliverables in this repository. For MCP-based IDE tooling instead of the CLI, see [MCP & IDE Integrations](/docs/tools/mcp-ide) .