https://github.com/cleancut/ts-each
List tailscale peers (hosts), run commands on each of them, etc.
https://github.com/cleancut/ts-each
Last synced: 22 days ago
JSON representation
List tailscale peers (hosts), run commands on each of them, etc.
- Host: GitHub
- URL: https://github.com/cleancut/ts-each
- Owner: CleanCut
- Created: 2025-11-19T18:30:25.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-11-21T19:32:38.000Z (4 months ago)
- Last Synced: 2026-01-25T20:43:31.840Z (2 months ago)
- Language: Rust
- Size: 25.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: license/APACHE
Awesome Lists containing this project
README
# `ts-each`
A simple utility that runs a command on multiple remote hosts via [tailscale]/[SSH](https://www.openssh.org/), displaying the output. Supports macOS, Linux, Windows, and any Unix-like OS that has a `tailscale` command-line client in the path.
## Installation
You should already have [Tailscale] installed and working.
You can install the latest release of `ts-each` using Cargo:
```bash
cargo install ts-each
```
Or to build from source, clone the repository and run:
```bash
cargo install --path .
```
## Usage
Without any arguments, `ts-each` lists all available Tailscale SSH hosts:
```bash
ts-each
```
With a single argument, it lists all matching Tailscale SSH hosts that start with the provided prefix:
```bash
ts-each
# For example, to list all hosts starting with "db-production-", do
ts-each db-production-
```
With multiple arguments, the first argument is the host prefix and the rest of the arguments are the command to execute on each matching host:
```bash
ts-each [args...]
# For example, to run `uptime` on all hosts starting with "web-", do
ts-each web- uptime
```
## Contribution
All software contributions are assumed to be dual-licensed under MIT/Apache-2.
## Software License
Distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See [`license/APACHE`](license/APACHE) and [`license/MIT`](license/MIT).
[Tailscale]: https://tailscale.com/