stree is a CLI tool designed to visualize the directory tree structure of an S3 bucket.
By inputting an S3 bucket/prefix and utilizing various flags to customize your request, you can obtain a colorized or non-colorized directory tree right in your terminal.
Whether it’s for verifying the file structure, sharing the structure with your team, or any other purpose, stree offers an easy and convenient way to explore your S3 buckets.
This is free and open source software.
Features include:
- Colorized Output: By default, stree provides a colorized tree structure, making it easy to differentiate between directories and files at a glance. This feature can be turned off with the
-nor--no-colorflag. - LocalStack Support: stree supports local testing with LocalStack, a fully functional local AWS cloud stack, thanks to the
--localand--endpoint-urlflags. - Custom AWS Profile and Region: Specify the AWS profile and region with the
--profileand--regionflags to override the default settings as needed. - Ease of Installation: Install stree via Go, Homebrew, or by downloading the latest compiled binaries from the GitHub releases page.
- Depth level Specification: With the
--Lflag, you can specify how many levels deep in the directory structure you’d like to visualize. This offers a more focused view, especially for large S3 buckets. - Role Switching Support: stree is now enhanced with the ability to switch AWS roles with MFA using the –mfa flag. This makes it easier to manage and view S3 buckets that require different IAM roles for access.
- Environment Variable Support: stree now prioritizes environment variables for AWS Profile and Region settings. The tool will use the AWS_PROFILE environment variable if set, falling back to the default profile otherwise. Similarly, it will use the AWS_REGION or AWS_DEFAULT_REGION environment variables for the AWS region, if available.
- Full Path Display: With the -f flag, the full path of each file is now displayed in the output, making it easier to identify the location of each item within the S3 bucket.
Website: github.com/orangekame3/stree
Support:
Developer: Takafumi Miyanaga
License: MIT License
stree is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| S3 Terminal Tools | |
|---|---|
| s5cmd | S3 and local filesystem execution tool |
| MinIO Client | Work with object storage from a Unix-style shell |
| claws | Terminal user interface for managing AWS resources |
| s3cmd | Manage objects in Amazon S3 storage |
| Rclone | Command line program to sync files and directories |
| STU | Browse buckets and objects directly from your terminal, preview files, and more |
| stree | Visualize the directory tree structure of an S3 bucket |
| s3tui | Simple S3 CLI client for file transfers |
| S3ry | AWS S3 interactive terminal client |
Read our verdict in the software roundup.
| Alternatives to tree | |
|---|---|
| broot | Next gen tree explorer and customizable launcher |
| alder | Minimal implementation of the tree command with colors |
| lstr | Fast, minimalist directory tree viewer |
| ictree | Like tree but interactive |
| tre | Modern alternative to the tree command |
| twf | Standalone tree view explorer inspired by fzf |
| Tree | Display a tree view of directories with color support |
| as-tree | Print a list of paths as a tree of paths |
| gtree | Generate trees and directories |
| stree | Visualize the directory tree structure of an S3 bucket |
| lstree | Wrapper script around ls to display a nice tree structure |
| tree++ | Display a tree with icons |
| treex | Fast, and customizable CLI directory viewe |
| wisu | Fast, minimalist directory tree viewer, written in Rust |
| dirmap | Tool for generating a directory map |
| struct | Smarter tree command |
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

