Grains Commands:
salt '*' grains.items: Retrieves all grain data for all minions.salt '*' grains.get <grain_name>: Retrieves a specific grain for all minions.salt '*' grains.ls: Lists all available grains.Execution Module Commands:
salt '*' cmd.run '<command>': Executes a command on all minions.salt '*' cmd.shell '<command>': Executes a shell command on all minions.salt '*' pkg.install <package_name>: Installs a package on all minions.salt '*' service.restart <service_name>: Restarts a service on all minions.State Module Commands:
salt '*' state.apply <state_file_or_sls>: Applies a state file or SLS to all minions.salt '*' state.highstate: Applies the highstate to all minions.Key Management Commands:
salt-key -L: Lists all keys.salt-key -A: Accepts all pending keys.salt-key -d <minion_id>: Deletes a minion's key.File Management Commands:
salt '*' file.managed <file_path>: Ensures that a file is present on all minions.salt '*' file.get <file_path>: Retrieves a file from all minions.salt '*' file.mkdir <directory_path>: Creates a directory on all minions.Grains Filtering Commands:
salt -G 'os:Ubuntu' test.ping: Performs a ping test on all minions matching the 'os' grain with value 'Ubuntu'.Remote Execution Commands:
salt '*' cmd.run '<command>': Executes a command on all minions.salt-run manage.up: Lists all minions that are up.