open-index/open-npm huggingface dataset:
npm package: @salestouch/cli
Description: Public SalesTouch CLI for commands, resources, and developer workflows.
Latest version: 0.1.7

# SalesTouch CLI

Public CLI for SalesTouch commands, resources, agent setup, and MCP workflows.

## Install

```bash
npx @salestouch/cli --help
```

Global install:

```bash
npm install -g @salestouch/cli
salestouch --help
```

If you only want a one-off execution, use `npx @salestouch/cli ...`.

## Authenticate

```bash
salestouch auth login
salestouch auth whoami
salestouch auth logout
```

API key authentication is also supported:

```bash
salestouch auth use-key st_...
```

## Commands

```bash
salestouch commands list
salestouch commands schema mission.get
salestouch commands run mission.get --input-json '{"mission_id":"mission_123"}'
salestouch resources list
salestouch resources read salestouch://status
salestouch setup --codex
salestouch mcp serve
```

The CLI can authenticate with either a stored SalesTouch login session or an API key. `salestouch setup` persists the selected auth method to the CLI config so local MCP clients can reuse it.
By default, `salestouch setup` prepares `Local CLI + skills` and installs the local runtime if it is missing. Add `--mcp` when you want the hosted MCP instead.
If you run `salestouch setup` with no setup flags in an interactive terminal, the CLI starts a small guided setup wizard.

## Setup

```bash
# Recommended: local CLI + skills for Codex
salestouch setup --codex

# Configure Claude and Cursor explicitly in CLI mode
salestouch setup --claude --cursor --cli

# Opt into hosted MCP explicitly
salestouch setup --claude --mcp --login

# Force a global local runtime instead of a repo-local one
salestouch setup --codex --runtime-global

# Force login during setup
salestouch setup --codex --login

# Persist an API key during setup
salestouch setup --codex --api-key st_...
```

## MCP

```bash
# Start the local stdio MCP server
salestouch mcp serve

# Override auth explicitly for the MCP process
salestouch mcp serve --api-key st_...
salestouch mcp serve --access-token <token>
```

## Environment

```bash
export SALESTOUCH_API_BASE_URL="http://localhost:3000"
export SALESTOUCH_API_KEY="st_..."
export SALESTOUCH_ACCESS_TOKEN="<token>"
```