SNAP Commands Cheat Sheet
Here is a cli commands cheat sheet for SNAP command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.
What is SNAP command?
Add some data here
# To find: snap find # To view detailed information about : snap info # To view all private snaps (must be logged in): snap find --private # To install the : sudo snap install # To install the from the "beta" channel: sudo snap install --channel=beta # To view installed snaps: snap list # To list all revisions of installed snaps: snap list --all # To (manually) update all snaps: sudo snap refresh # To (manually) update : sudo snap refresh # To update to the "beta" channel: sudo snap refresh --channel=beta # To revert to a prior version: sudo snap revert # To revert to revision 5: snap revert --revision 5 # To remove : sudo snap remove # To log in to snap (must first create account online): sudo snap login # To log out of snap: snap logout # To view a transaction log summary: snap changes # To view details of item 123 in the transaction log: snap change 123 # To watch transaction 123: snap watch 123 # To abort transaction 123: snap abort 123 # To download (and its assertions) *without* installing it: snap download # To install the locally-downloaded `foo` snap with assertions: snap ack foo.assert snap install foo.snap # To install the locally-downloaded `foo` snap without assertions: # NB: this is dangerous, because the integrity of the snap will not be # verified. You should only do this to test a snap that you are currently # developing. snap install --dangerous foo.snap # To install snap `foo` in "dev mode": # NB: this is dangerous, and bypasses the snap sandboxing mechanisms snap install --devmode foo # To install snap `foo` in "classic mode": # NB: this is likewise dangerous snap install --classic foo # To view available snap interfaces: snap interfaces # To connect the `foo:camera` plug to the ubuntu core slot: snap connect foo:camera :camera # To disconnect the `foo:camera` plug from the ubuntu core slot: snap disconnect foo:camera # To disable the `foo` snap snap disable foo # To enable the `foo` snap snap enable foo # To set snap `foo`'s `bar` property to 10: snap set foo bar=10 # To read snap `foo`'s current `bar` property: snap get foo bar
Check out the SNAP 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