SALT Commands Cheat Sheet

Here is a cli commands cheat sheet for SALT command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is SALT command?

Add some data here

        # Show pending keys to be accepted:
salt-key -L

# Accept all pending keys:
salt-key -A

# Accept pending key by name:
salt-key -a 

# Remove key by name:
salt-key -D 

# Test minion connection:
salt  test.ping

# Show active salt jobs
salt-run jobs.active

# Kill active job
salt  saltutil.kill_job 

# Copy small file (< 100kb) from master to minion
salt-cp   

# Copy large file from master (/srv/salt/) directory to minion
salt  cp.get_file salt:// 

# Copy file from minion to master (will be stored at /var/cache/salt/master/minions//files
salt  cp.push 

# Deploy state
salt  state.apply 
    

Check out the SALT command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list