diff --git a/cli.md b/cli.md
index fe46424..7250b64 100644
--- a/cli.md
+++ b/cli.md
@@ -85,6 +85,8 @@ Options:
CLI that you can access with app.params
--list-layers List layers of the next given sprite
or include layers in JSON data
+ --list-layer-hierarchy List layers with groups of the next given sprite
+ or include layers hierarchy in JSON data
--list-tags List tags of the next given sprite sprite
or include frame tags in JSON data
--list-slices List slices of the next given sprite sprite
@@ -517,6 +519,34 @@ JSON output in the `meta` attribute. E.g.
}
}
+## --list-layer-hierarchy
+
+ aseprite --list-layer-hierarchy file.ase
+
+Prints the list of layers with groups in the given file from bottom to top. E.g.
+
+
+
+ C:\....> aseprite -b --list-layer-hierarchy file.ase
+ Layer 2
+ Group 1/
+ Layer 1.1
+
+When used with [--data](#data), the layers will be available in the
+JSON output in the `meta` attribute. Same as [--list-layers](#list-layers) E.g.
+
+ { "frames": [
+ ...
+ ],
+ "meta": {
+ ...,
+ "layers": [
+ { "name": "Layer 2" },
+ { "name": "Layer 1.1", "group": "Group 1"}
+ ]
+ }
+ }
+
## --list-tags
aseprite --list-tags file.ase
diff --git a/cli/list-layer-hierarchy.png b/cli/list-layer-hierarchy.png
new file mode 100644
index 0000000..451c179
Binary files /dev/null and b/cli/list-layer-hierarchy.png differ