# Function utilities

Commands for inspecting and managing your function after it's deployed — database contents, storage files, deployment status, generated documentation, and developer skills for AI coding assistants.

Run any command with `--help` for the full flag list.

## `sinch status`

Show the current status and details of a deployed function.

```bash
sinch status                     # show status of the function in cwd
sinch status --name my-function  # target a specific function
```

Prints deployment state (`Running`, `Building`, `Failed`, etc.), function URL, environment, runtime, and last deploy time. Use this when `sinch functions logs` shows nothing — first check that the function is actually up.

## `sinch docs`

Generate a README.md from the current function's metadata and detected handlers.

```bash
sinch docs
```

Inspects `sinch.json`, the exported handlers (Node) or controllers (C#), and writes a README.md that explains what the function does, which callbacks it implements, and how to invoke them locally. Safe to re-run — it regenerates from source each time.

`sinch functions deploy` prompts to run this automatically unless you pass `--no-docs`.

## `sinch db`

Download and upload the function's SQLite database. Useful for pulling production data down to inspect locally, or pushing a seeded database up.

```bash
sinch db download                     # download the deployed db to ./function.db
sinch db download --output backup.db  # custom local path
sinch db upload ./seed.db             # upload a local SQLite file to the deployed function
sinch db upload ./seed.db --force     # overwrite the existing database
```

Both commands target the deployed function by default (looks up the function ID in `sinch.json`). Pass a `[function-id]` positional to target a different function.

For interactive querying, download the database and use `sqlite3` or any SQLite client locally.

## `sinch storage`

Manage the function's blob storage. Useful for inspecting recordings, reports, or other files your function wrote to `context.storage`.

```bash
sinch storage list                             # list all files
sinch storage list recordings/                 # list under a prefix
sinch storage download reports/daily.json      # download a file
sinch storage download reports/daily.json ./local.json  # with a local path
sinch storage upload ./data.json reports/new.json       # upload a local file
sinch storage delete reports/old.json          # delete a file
sinch storage delete reports/old.json --force  # skip the confirmation
```

The commands target the deployed function's blob storage.

## `sinch skills`

Install and manage Sinch developer skills for AI coding assistants (Claude Code, Cursor, Copilot, etc.). Skills give the assistant structured knowledge of how to build and debug Sinch Functions without you having to paste docs into the prompt.

```bash
sinch skills list                   # show installed and available skills
sinch skills install functions-dev  # install a skill
sinch skills update                 # pull latest versions
sinch skills uninstall functions-dev
```

Skills are distributed as part of the Sinch ecosystem and installed into the appropriate config directory for your AI assistant of choice.

## Related

- [`sinch functions` commands](/docs/functions/cli/commands/functions) — init, dev, deploy, download, delete, list, logs
- [Monitoring](/docs/functions/functions/monitoring) — streaming logs with the interactive TUI
- [Deployment concept](/docs/functions/functions/concepts/deployment) — what `Running` / `Building` / `Failed` actually mean