Monitoring

stree – visualize the directory tree structure of an S3 bucket

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 -n or --no-color flag.
  • LocalStack Support: stree supports local testing with LocalStack, a fully functional local AWS cloud stack, thanks to the --local and --endpoint-url flags.
  • Custom AWS Profile and Region: Specify the AWS profile and region with the --profile and --region flags 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 --L flag, 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
s5cmdS3 and local filesystem execution tool
MinIO ClientWork with object storage from a Unix-style shell
clawsTerminal user interface for managing AWS resources
s3cmdManage objects in Amazon S3 storage
RcloneCommand line program to sync files and directories
STUBrowse buckets and objects directly from your terminal, preview files, and more
streeVisualize the directory tree structure of an S3 bucket
s3tuiSimple S3 CLI client for file transfers
S3ryAWS S3 interactive terminal client

Read our verdict in the software roundup.

Alternatives to tree
brootNext gen tree explorer and customizable launcher
alderMinimal implementation of the tree command with colors
lstrFast, minimalist directory tree viewer
ictreeLike tree but interactive
treModern alternative to the tree command
twfStandalone tree view explorer inspired by fzf
TreeDisplay a tree view of directories with color support
as-treePrint a list of paths as a tree of paths
gtreeGenerate trees and directories
streeVisualize the directory tree structure of an S3 bucket
lstreeWrapper script around ls to display a nice tree structure
tree++Display a tree with icons
treexFast, and customizable CLI directory viewe
wisuFast, minimalist directory tree viewer, written in Rust
dirmapTool for generating a directory map
structSmarter tree command

Best Free and Open Source Software 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.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments