structure.sh

Generate shareable directory trees in one command

Install & Use

Run this command in your terminal:

curl -s https://structure.sh/install | bash

Then use it in any directory:

structure

Simple

One command to generate a tree of any directory

Clean

Generates an ASCII tree of your file structure

Shareable

Generate links to share with others instantly

Share Your Project Structure

The sharing feature lets you generate a shareable URL for your project structure with a single command. Perfect for documentation, READMEs, or sharing with colleagues!

See Example

How It Works

Structure scans your directories and generates an ASCII tree representation of your file structure. Perfect for documentation, READMEs, or just getting a better view of your project.

Example Output:

my-project/
├── src/
│   ├── components/
│   │   ├── Header.js
│   │   ├── Footer.js
│   │   └── Sidebar.js
│   ├── utils/
│   │   └── helpers.js
│   └── App.js
├── public/
│   ├── index.html
│   └── favicon.ico
├── tests/
│   └── App.test.js
├── package.json
├── README.md
└── .gitignore

Options & Usage

Structure comes with several useful options:

structure # Map current directory structure /path/to/dir # Map specific directory structure -o output.txt # Specify output file structure -i node_modules,dist # Ignore additional directories structure -s # Generate shareable URL
View on GitHub