Salt Commands

This section shows useful Salt commands.

salt-run

Print a list of all clients that are up:

salt-run manage.up

Print a list of all clients that are down:

salt-run manage.down

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

salt-run manage.status

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

salt-run manage.versions
salt-cp

Copy a file to a client or set of clients.

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

List public keys:

salt-key -l
salt-key -A

Accept all pending keys:

salt-key -A