Skip to content

dependencies ​

Command: dependencies
Category: System Admin
Status: Production Ready

Description ​

Generate and visualize object dependency graphs for database objects. This command analyzes relationships between tables, views, procedures, and other database objects, showing incoming and outgoing dependencies. Supports multiple output formats including tree, JSON, GraphViz, and Mermaid diagrams.

Syntax ​

bash
hana-cli dependencies [options]

Aliases ​

  • deps
  • depend
  • dependency-graph
  • relationships

Command Diagram ​

Parameters ​

Options ​

OptionAliasTypeDefaultDescription
--schema-sstring-Schema name to analyze
--object-ostring-Object name to analyze dependencies for
--direction--dirstringbothDependency direction. Choices: incoming, outgoing, both
--depth--lvlnumber3Maximum depth level for dependency traversal
--output--outstring-Output file path (if not specified, displays to console)
--format-fstringtreeOutput format. Choices: tree, json, graphviz, mermaid
--includeViews--ivbooleantrueInclude views in dependency graph
--includeProcedures--ipbooleantrueInclude procedures in dependency graph

Connection Parameters ​

OptionAliasTypeDefaultDescription
--admin-abooleanfalseConnect via admin (default-env-admin.json)
--conn-string-Connection filename to override default-env.json

Troubleshooting ​

OptionAliasTypeDefaultDescription
--disableVerbose--quietbooleanfalseDisable verbose output - removes all extra output that is only helpful to human readable interface
--debug-dbooleanfalseDebug hana-cli itself by adding output of LOTS of intermediate details

Examples ​

Analyze Object Dependencies ​

bash
hana-cli dependencies --schema MYSCHEMA --object MY_TABLE

Show all dependencies (both incoming and outgoing) for MY_TABLE in tree format.

Outgoing Dependencies Only ​

bash
hana-cli dependencies --schema MYSCHEMA --object MY_VIEW --direction outgoing

Show only outgoing dependencies (what MY_VIEW depends on).

Generate Mermaid Diagram ​

bash
hana-cli dependencies --schema MYSCHEMA --object MY_PROC --format mermaid --output deps.md

Generate a Mermaid diagram of dependencies and save to deps.md file.

Deep Dependency Analysis ​

bash
hana-cli dependencies --schema MYSCHEMA --object MY_TABLE --depth 5 --format json

Analyze dependencies up to 5 levels deep and output as JSON.

See the Commands Reference for other commands in this category.

See Also ​