> For the complete documentation index, see [llms.txt](https://docs.kick.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kick.co/ai/cli/cli-use-case-library.md).

# Use Case Library

Copy verified Kick CLI scripts for reporting, transaction review, data export, and integrations. Every command matches the current CLI surface.

#### How to Use This Library

Each use case includes:

* **The complete script** you can copy and run
* **Read or write** label so you know whether the workflow changes data
* **How to customize** it for your needs
* **What it outputs** so you know what to expect

All scripts assume you have [installed and authenticated](/ai/cli/cli-quickstart/install-the-kick-cli.md) the CLI. Replace `<workspace-id>`, entity ids, ledger ids, and dates with your client context.

Set a token for scripts:

```bash
export KICK_PAT=kick_pat_...
```

***

### Workflow Scripts by Use Case

<table data-view="cards"><thead><tr><th data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="/ai/cli/cli-use-case-library/daily-ops.md">Daily Ops</a></td></tr><tr><td><a href="/ai/cli/cli-use-case-library/close.md">Close</a></td></tr><tr><td><a href="/ai/cli/cli-use-case-library/investigation.md">Investigation</a></td></tr><tr><td><a href="/ai/cli/cli-use-case-library/advisory-and-deliverables.md">Advisory and Deliverables</a></td></tr><tr><td><a href="/ai/cli/cli-use-case-library/integration-scripts.md">Integration Scripts</a></td></tr></tbody></table>

***

#### Quick Command Reference

<details>

<summary><strong>List workspaces</strong> (read)</summary>

```bash
kick workspaces list
```

</details>

<details>

<summary><strong>Set default workspace</strong> (write: stores local profile default)</summary>

```bash
kick workspaces use <workspace-id>
```

</details>

<details>

<summary><strong>List entities in a workspace</strong> (read)</summary>

```bash
kick workspaces context <workspace-id> --output json | jq '.reportableEntities[] | {id, name}'
```

Returns the workspace's business entities, up to 50, with the numeric ids that report commands take.

</details>

<details>

<summary><strong>Find transactions in a date range</strong> (read)</summary>

```bash
kick --workspace <workspace-id> transactions find --since 2026-01-01 --until 2026-01-31 --limit 25
```

</details>

<details>

<summary><strong>Export transactions as JSON</strong> (read)</summary>

```bash
kick --workspace <workspace-id> transactions find --since 2026-01-01 --until 2026-01-31 --fields id,date,amount,counterparty,category --limit 100 --output json
```

Returns up to 100 rows per call. To export every row, use the paging function in [Page through results](/ai/cli/cli-reference.md#page-through-results).

</details>

<details>

<summary><strong>Profit and loss</strong> (read)</summary>

```bash
kick --workspace <workspace-id> reports profit-loss --entity 123 --ledger-id <ledger-uuid> --start-date 2026-01-01 --end-date 2026-01-31 --cycle month --output json
```

</details>

<details>

<summary><strong>Balance sheet</strong> (read)</summary>

```bash
kick --workspace <workspace-id> reports balance-sheet --entity 123 --ledger-id <ledger-uuid> --start-date 2026-01-01 --end-date 2026-01-31 --output json
```

</details>

<details>

<summary><strong>Trial balance</strong> (read)</summary>

```bash
kick --workspace <workspace-id> reports trial-balance --entity 123 --ledger-id <ledger-uuid> --start-date 2026-01-01 --end-date 2026-01-31 --output json
```

</details>

<details>

<summary><strong>Resolve a ledger id for an entity</strong> (read)</summary>

```bash
kick --workspace <workspace-id> accounting ledgers get --entity-id 123 --output json | jq -r '.ledgers[] | select(.basis == "cash") | .id'
```

Reports use the basis of the ledger you pass. This returns the entity's Cash ledger id. To see Accrual ledgers too, run `kick workspaces context <workspace-id> --output json | jq '.ledgers'`.

</details>

<details>

<summary><strong>Inspect recent activity</strong> (read)</summary>

```bash
kick --workspace <workspace-id> activity list --resource-type transaction --limit 10 --output json
```

</details>

***

**Have a workflow you'd like to automate?** Share it with us and we'll add it to this library at <support@kick.co>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kick.co/ai/cli/cli-use-case-library.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
