Salt Commands

This section shows useful Salt commands.

salt-run

Print a list of all minions that are up:

salt-run manage.up

Print a list of all minions that are down:

salt-run manage.down

Print a list with the current status of all Salt minions:

salt-run manage.status

Check the version of Salt running on the master and active minions:

salt-run manage.versions
salt-cp

Copy a file to a minion or set of minions.

salt-cp '*' foo.conf /root
salt-key -l

List public keys:

salt-key -l
salt-key -A

Accept all pending keys:

salt-key -A