LinuxCommandLibrary

sake

Task runner for local and remote hosts via SSH

TLDR

Initialize a new sake configuration
$ sake init
copy
Run a task on all servers
$ sake run [ping] --all
copy
Execute a command on all servers with table output
$ sake exec --all --output table '[uptime]'
copy
SSH into a defined server
$ sake ssh [server]
copy

SYNOPSIS

sake command [options]

DESCRIPTION

sake lets you define servers and tasks in a sake.yaml configuration file and then run those tasks on local or remote hosts via SSH. It supports auto-completion of tasks, servers, and tags, table-formatted output, parallel execution, and can SSH into Docker containers.

PARAMETERS

init

Create a new sake.yaml configuration file.
run TASK
Run a defined task on target servers.
exec COMMAND
Execute an ad-hoc shell command on target servers.
ssh SERVER
SSH into a configured server.
list servers
List all configured servers.
list tasks
List all defined tasks.
--all
Target all servers.
--output FORMAT
Output format: table, text, or json.

HISTORY

sake was created by Samir Alajmovic (alajmo) and is written in Go.

SEE ALSO

ansible(1), ssh(1), fabric(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard