development · Command reference

qzx getProjectTree

What it does

Generates a clean visual directory tree (ASCII and JSON) excluding heavy directories like node_modules

Canonical command: getProjectTree

Accepted aliases: None

Case-sensitive: no

Included in the published package

Available in PyPI 0.2.2.0.2. This page documents the 0.2.2.0.2 alpha development checkout.

Safety and effects

Read-only under the current classification

No documented dry-run parameter

No native program invocation in the current classification

No documented network use

No inherent elevation requirement

This safety classification was reviewed against implementation digest sha256:82c9cad2346beab0e81862adde91a61cf4f3218282009b54249bc5c357dab9ba on 2026-07-24.

Exact syntax

qzx getProjectTree [dir_path] [max_depth] [exclude_dirs] [include_files] --json

Parameters

NameTypeRequiredDefaultDescription
dir_pathstrNo"."Path to the directory to visualize (defaults to current directory)
max_depthstrNo"2"Maximum depth level of the tree (defaults to 2)
exclude_dirsstrNo".git,node_modules,__pycache__,.venv,env,dist,build,artifacts,.next,.nuxt,.idea,.vscode"Comma-separated directory names to exclude (defaults to standard caches and configs)
include_filesstrNo"true"Whether to list files as well as directories (true/false)

Input examples

qzx getProjectTree

Show directory tree for the current folder up to 2 levels deep

qzx getProjectTree src 3

Show directory tree for the src folder up to 3 levels deep

qzx getProjectTree . 2 .git,node_modules false

Show directory tree excluding only .git and node_modules, showing folders only

For the complete structured payload, add --json: qzx getProjectTree [dir_path] [max_depth] [exclude_dirs] [include_files] --json

Representative output example

This illustrative JSON is derived from the current implementation-backed result contract. It shows what the command can return without claiming a recorded execution; values vary with inputs, host, permissions, and optional tools.

Example command: qzx getProjectTree --json

{
    "success": true,
    "message": "Generates a clean visual directory tree (ASCII and JSON) excluding heavy directories like node_modules. In this illustrative example, the command completed successfully.",
    "dir_path": "C:\\project\\example.txt",
    "exclude_dirs": [
        ".git",
        "node_modules",
        "__pycache__"
    ],
    "include_files": true,
    "max_depth": "Example value",
    "tree_structure": {
        "name": "project",
        "children": [
            {
                "name": "src",
                "type": "directory"
            }
        ]
    },
    "tree_text": "project/\n└── src/\n    └── example.py"
}
View the JSON result contract
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "required": [
        "success",
        "message"
    ],
    "properties": {
        "success": {
            "type": "boolean"
        },
        "message": {
            "type": "string"
        },
        "dir_path": [],
        "error": {
            "type": "string"
        },
        "exclude_dirs": [],
        "include_files": [],
        "max_depth": [],
        "tree_structure": [],
        "tree_text": []
    },
    "additionalProperties": true
}

Errors and limits

The public contract requires success=false and a descriptive message on failure. This catalog does not yet declare a command-specific error taxonomy; inspect the result and do not invent error codes.

QZX is alpha software. Optional dependencies, permissions, and host capabilities can change the result.

Evidence workflow: ready for deterministic automated capture.

Evidence and provenance

Documentation channel
Development documentation 0.2.2.0.2 · main · sha256:319b16857a87636ebc3b89734cc040a737bb56194464fca33ce73bdae2043096
Availability
0.2.2.0.2 or earlier

Keep exploring

These commands also belong to the development category. Compare them to choose the operation that best fits your task.

Explore all QZX commands