---
name: "hare-deps"
section: "1"
platform: "linux"
package: "hare"
version: "0.26.0.1-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/hare-deps"
---

# hare-deps(1)

display the dependency tree of a Hare program or module

## NAME

hare deps - display the dependency tree of a Hare program or module

## SYNOPSIS

**hare deps** \[-hd\] \[-T *tagset*\] \[*path*\|*module*\]

## DESCRIPTION

**hare deps** displays the dependency tree of a Hare program or module, as per the algorithm described in **DEPENDENCY RESOLUTION** in [**hare-module**(5)](/hare-module/5.md). The *path* argument is a path to a Hare source file or a directory which contains a Hare module (see [**hare-module**(5)](/hare-module/5.md)). If no path is given, the Hare module contained in the current working directly is used.

By default, the dependency tree is pretty-printed using Unicode box-drawing characters.

## OPTIONS

- **-h**

  Print the help text.

- **-D**

  Print only the direct dependencies of the module, and its submodules with the **-s** option.

- **-d**

  Print the dependency tree as a dot file for use with **graphviz**(1).

- **-s**

  Recursively collect submodules below the specified path or module's directory. A path should be a source directory to reliably collect dependencies.

- **-t**

  Print the dependency tree as a field-based plain text output. Each line has two fields, a module and one of its dependencies. If the module (or one of its submodules with the **-s** option) does not have dependencies, the second field contains just a dash. The text output is a suitable input for [**tsort**(1)](/tsort/1.md).

- **-T** *tagset*

  Set or unset build tags. See **BUILD TAGS** in [**hare-module**(5)](/hare-module/5.md).

## ENVIRONMENT

The following environment variables affect **hare deps**' execution:

| | |
| --- | --- |
| **HAREPATH** | The list of directories to search for dependencies in. |
| **NO\_COLOR** | Disables all color output when set to a non-empty string. |

## SEE ALSO

[**hare-module**(5)](/hare-module/5.md)
