# CLI Anything Libreoffice

Command-line interface for Libreoffice - A stateful command-line interface for document...

- Repository: https://github.com/HKUDS/CLI-Anything (58029 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-09-22
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add HKUDS/CLI-Anything --skill cli-anything-libreoffice -g -a claude-code -y`
Codex: `npx skills add HKUDS/CLI-Anything --skill cli-anything-libreoffice -g -a codex -y`
Cursor: `npx skills add HKUDS/CLI-Anything --skill cli-anything-libreoffice -g -a cursor -y`
Gemini CLI: `npx skills add HKUDS/CLI-Anything --skill cli-anything-libreoffice -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add HKUDS/CLI-Anything`

## Description

Command-line interface for Libreoffice - A stateful command-line interface for document editing, producing real ODF files (ZIP archives with ...

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# cli-anything-libreoffice

A stateful command-line interface for document editing, producing real ODF files (ZIP archives with XML). Designed for AI agents and power users who need to create and manipulate Writer, Calc, and Impress documents without a GUI or LibreOffice installation.

## Installation

This CLI is installed as part of the cli-anything-libreoffice package:

```bash
pip install cli-anything-libreoffice
```

**Prerequisites:**
- Python 3.10+
- libreoffice must be installed on your system


## Usage

### Basic Commands

```bash
# Show help
cli-anything-libreoffice --help

# Start interactive REPL mode
cli-anything-libreoffice

# Create a new project
cli-anything-libreoffice project new -o project.json

# Run with JSON output (for agent consumption)
cli-anything-libreoffice --json project info -p project.json
```

### REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

```bash
cli-anything-libreoffice
# Enter commands interactively with tab-completion and history
```


## Command Groups


### Document

Document management commands.

| Command | Description |
|---------|-------------|
| `new` | Create a new document |
| `open` | Open project JSON, or import an existing Office/ODF file |
| `import` | Import an existing Office/ODF file to project JSON |
| `import-formats` | List supported import formats |
| `save` | Save the current document |
| `info` | Show document information |
| `profiles` | List available page profiles |
| `json` | Print raw project JSON |


### Writer

Writer (word processor) commands.

The rest: https://github.com/HKUDS/CLI-Anything/blob/HEAD/libreoffice/agent-harness/cli_anything/libreoffice/skills/SKILL.md
