# sap-hana-cli

This skill teaches your agent to drive hana-cli: inspect tables and views, run SQL, manage HDI containers, and export metadata to CDS, EDMX or OpenAPI.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 717 installs · ★ 475
- Author: secondsky
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-hana-cli/skills/sap-hana-cli/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/sap-hana-cli

## What it does

The skill maps out SAP HANA Developer CLI (hana-cli), a command-line tool for HANA database development and administration. Your agent learns the command surface: inspecting tables, views, procedures and functions, running SQL, managing HDI containers, handling SAP HANA Cloud instances, and working with BTP CLI integration. The description covers 91 commands and more than 17 output formats.

There is an MCP section too. The bundled config pins `hana-mcp-server@0.3.4`, and connection details come from environment variables such as `HANA_HOST`, `HANA_PORT`, `HANA_USER` and `HANA_PASSWORD`. That server gets access to a HANA tenant, so the author advises running the `sap-dependency-security` skill before you change the pin. hana-cli itself needs Node.js 20.19.0 or newer.

The skill points at neighbours: `sap-cap-capire` for CAP and HDI work, `sap-btp-cloud-platform` for cloud instances, `sap-abap-cds` for CDS syntax comparisons. No HANA database and no plans for one? Then there is nothing here for you.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-hana-cli -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/sap-hana-cli/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/sap-hana-cli/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-hana-cli -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/sap-hana-cli/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-hana-cli -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/sap-hana-cli/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install secondsky/sap-skills sap-hana-cli
```

2. **Manually: put the files in place**
- File: `.github/skills/sap-hana-cli/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-hana-cli -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-hana-cli/skills/sap-hana-cli
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/sap-hana-cli/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-hana-cli -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-hana-cli/skills/sap-hana-cli/SKILL.md

## When to use it
- inspect a table's columns and data types
- run a SQL query against a HANA database
- create or drop an HDI container
- export table metadata to CDS format
- connect to a HANA Cloud instance via service key

## Example prompts
- Show me all tables in the MY_APP schema
- Describe the structure of the ORDERS table
- Run `hana-cli inspectTable -t INVENTORY -s PRODUCTS -o cds`

## Similar
- [sap-fiori-create-cli](https://affpapa.org/en/nevibecode/skills/sap-fiori-create-cli.md) — skill · 584 installs
- [sap-fiori-guidelines](https://affpapa.org/en/nevibecode/skills/sap-fiori-guidelines.md) — skill · 1200 installs
- [convex-backup](https://affpapa.org/en/nevibecode/skills/convex-backup.md) — skill · 35900 installs
- [surrealkit](https://affpapa.org/en/nevibecode/skills/surrealkit.md) — skill · 400 installs
- [aws-rds](https://affpapa.org/en/nevibecode/skills/aws-rds.md) — skill · 331 installs
- [planetscale-pscale-cli-automation](https://affpapa.org/en/nevibecode/skills/planetscale-pscale-cli-automation.md) — skill · 1700 installs

From the same set: [secondsky/sap-skills](https://affpapa.org/en/nevibecode/by/secondsky/sap-skills.md) — 24 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
