Quick Start
Get up and running with hana-cli in 5 minutes.
Step 1: Verify Installation
bash
hana-cli --version
# Output: hana-cli/x.x.xStep 2: Check Your Connection
Ensure you have a default-env.json file with HANA credentials (see Configuration).
Test the connection:
bash
hana-cli alerts -hIf this shows alerts without errors, you're connected!
Step 3: Try Basic Commands
View database information
bash
hana-cli dbInfoList tables in a schema
bash
hana-cli tables -s MYSCHEMAProfile data in a table
bash
hana-cli dataProfile -s MYSCHEMA -t EMPLOYEESStep 4: Import Data
Create a CSV file (data.csv):
csv
ID,Name,Age
1,Alice,30
2,Bob,25
3,Charlie,35Import into a table:
bash
hana-cli import -f data.csv -s MYSCHEMA -t EMPLOYEES -m nameStep 5: Export Data
Export table data to CSV:
bash
hana-cli export -s MYSCHEMA -t EMPLOYEES -o output.csvCommon Tasks
Compare Two Schemas
bash
hana-cli compareSchema -s SCHEMA1 -t SCHEMA2Analyze Data Quality
bash
hana-cli dataValidator -s MYSCHEMA -t EMPLOYEESFind Duplicates
bash
hana-cli duplicateDetection -s MYSCHEMA -t EMPLOYEES -c IDGet Data Lineage
bash
hana-cli dataLineage -s MYSCHEMA -t EMPLOYEESGetting Help
Get help for any command:
bash
# General help
hana-cli --help
# Command-specific help
hana-cli import --help
hana-cli export --help
hana-cli dataProfile --helpNext Steps
Troubleshooting
Having issues? See the Troubleshooting Guide
