Generated from hana-cli v4.202603.2 on 2026-03-17
npm install -g hana-cli# Interactive connection wizard — prompts for host, port, user, password
hana-cli connect
# Or connect using a BTP service key file
hana-cli connectViaServiceKey
# Verify your connection
hana-cli statusCheck current database user and connection
Aliases: s, whoami
hana-cli statusConfigure database connection
Aliases: c, login
hana-cli connect [user] [password]Find tables in schema
Aliases: t, listTables, listtables
hana-cli tables [schema] [table]Inspect table structure and properties
Aliases: it, table, insTbl, inspecttable, inspectable
hana-cli inspectTable [schema] [table]List views
Aliases: v, listViews, listviews
hana-cli views [schema] [view]Load data from CSV/Excel
Aliases: imp, uploadData, uploaddata
hana-cli importExtract table data to file
Aliases: exp, downloadData, downloaddata
hana-cli exportRun simple queries
Aliases: qs, querysimple
hana-cli querySimplePerform system health check
Aliases: health, h
hana-cli healthCheckList all schemas
Aliases: sch, getSchemas, listSchemas, s
hana-cli schemas [schema]hana-cli schemas # List schemas
hana-cli tables --schema MY_SCHEMA # List tables
hana-cli inspectTable --table MY_TABLE --schema MY_SCHEMA # Column detailshana-cli import --filename data.csv --table MY_TABLE --schema MY_SCHEMA --dryRun # Preview
hana-cli import --filename data.csv --table MY_TABLE --schema MY_SCHEMA # Executehana-cli export --table MY_TABLE --schema MY_SCHEMA --filename export.csvhana-cli querySimple --query "SELECT TOP 10 * FROM MY_SCHEMA.MY_TABLE"hana-cli healthCheck
hana-cli systemInfohana-cli --help # List all commands
hana-cli <cmd> --help # Help for specific command
hana-cli interactive # Interactive menu mode