Metadata-Version: 2.5
Name: recala-cli
Version: 0.6.7
Summary: Drive your Recala company from the terminal, by hand or through an AI agent.
Project-URL: Homepage, https://recala.co
Project-URL: Documentation, https://recala.co/developers
Author: Recala
Keywords: ai-agents,articles,cli,content,recala
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: click>=8.1
Requires-Dist: httpx>=0.27
Provides-Extra: dev
Requires-Dist: pytest>=8.3; extra == 'dev'
Description-Content-Type: text/markdown

# Recala CLI

Drive your Recala company from the terminal, by hand or through an AI agent.
Everything the portal does for articles, topics, authors and publishing is a command.

## Install

```
uv tool install recala-cli
```

or

```
pipx install recala-cli
```

Upgrade with `recala update`, or `uv tool upgrade recala-cli`.

## Use the Recala skill with an agent

The CLI bundles one `recala` skill. Install it in your agent's project directory:

```sh
recala skills install --dir .agents/skills  # Codex
recala skills install                      # Claude Code
```

After upgrading the CLI, add `--force` to install the latest skill. The command backs up
previous Recala skills beside the target directory and leaves other skills in place.

A Recala MCP connection provides the same skill in its instructions and as the
`recala://skill` resource. See https://recala.co/developers/skills/.

## Sign in

```
recala login
```

This opens your browser once. After that, `recala company list` shows your companies and
`recala company use <name>` picks the one the next commands act on.

## Three examples

```
recala status
recala article list
recala --org "My Company" credits
```

Add `--json` to any command for output an agent can read. `recala --help` lists every command;
`recala completion zsh` prints shell completion.

Documentation: https://recala.co/developers

## Top up article credits

On an eligible plan, an owner can preview the price or create a Stripe checkout link:

```sh
recala billing top-up --org "My Company" --quantity 1 --dry-run
recala billing top-up --org "My Company" --quantity 1
```

The command shows the quoted total. Stripe shows the final amount. Recala adds the credits after Stripe confirms payment.

## Usage analytics

Commands that attempt an authenticated API request report their registered command name, CLI version, duration
and exit status through Recala's authenticated API. Arguments, article content,
terminal output and credentials are not included. API credentials authenticate
the report as usual; PostHog credentials remain on Recala's server.

Set `RECALA_TELEMETRY=0` (or `DO_NOT_TRACK=1`) to opt out. Signed-out commands,
local-only commands, help/version output and dry runs do not report. Reports go
only to the same API origin and path prefix the command already used. Delivery is best effort;
an analytics outage does not change the command's output or exit status.
