> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# office

> Set up the credential-free office CLI for Excel, Word and PowerPoint files with Python or TypeScript.

Mirage implements [OfficeCLI](https://github.com/iOfficeAI/OfficeCLI)'s
`create`, `get`, `query`, `set`, `remove` and `batch` on `.xlsx` workbooks, and
`get` and `query` on `.docx` documents and `.pptx` decks, with OfficeCLI's
paths, selectors, `--prop` values and `--json` output. An edit
rewrites only what it changes; charts, styles, named ranges and validations stay
as they were.

`office` needs no account config and reads workbooks through existing mounts.
Register it on `ws`. Commands: [Python](https://docs.mirage.strukto.ai/python/cli/office.md) ·
[TypeScript](https://docs.mirage.strukto.ai/typescript/cli/office.md).

> [tab] Python
>
> ```python theme={null}
> from mirage.commands.cli.builtin.office import OFFICE
>
> ws.register_cli("office", OFFICE)
> ```

> [tab] TypeScript
>
> ```typescript theme={null}
> import { OFFICE } from '@struktoai/mirage-node'
>
> ws.registerCli('office', OFFICE)
> ```


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