muster group

muster group

Combine local and remote projects into a group, then deploy them together, in order.

Synopsis

Terminal
muster group [command]
muster deploy fleet <group>   # shortcut for: muster group deploy <group>

Description

A fleet is one project deployed to many servers; a group is many projects deployed as one. Groups are stored with the fleet config in ~/.muster/fleets/ on this machine (a legacy ~/.muster/groups.json is migrated). Each project can use SSH or the cloud transport.

Subcommands

SubcommandDescription
(none)Interactive group manager.
listList all groups.
create <name>Create a group.
delete <name>Delete a group.
add <group> [target]Add a project to a group.
remove <group>Remove a project from a group.
rename <group> <name>Rename a group.
edit <group> <idx>Edit a remote project's connection settings.
reorder <group>Reorder projects interactively.
deploy <group>Deploy every project in a group.
status <group>Health of every project in a group.

Flags

group add

FlagDescription
--port, -p NSSH port (default 22).
--key, -k FILESSH identity file.
--path DIRProject directory on the remote.
--cloudRoute through the cloud tunnel instead of SSH.
--auth METHODkey (default), password or agent.
--auth-mode MODEPassword handling: save, session or always.

group deploy

FlagDescription
--dry-runPreview the deploy plan without executing.
--jsonOutput as JSON.

group edit

FlagDescription
--host, --user, --port, --key, --pathChange connection details.
--cloud / --no-cloudToggle cloud transport.
--auth, --auth-modeChange auth settings.

Examples

Terminal
muster group create prod
muster group add prod /path/to/project                      # local
muster group add prod [email protected] --path /opt/app        # SSH key
muster group add prod [email protected] --auth password        # SSH password
muster group add prod agent-name --cloud --path /opt/app     # Fleet Cloud
muster group deploy prod

Exit codes and JSON

group list --json and group status <group> --json need a read token.