Can I install a package using its `snap-id`?

You might be interested in Install what-snap on Linux | Snap Store

$ what-snap JSNnoJl3EqkMuWoy5Dgq8PMqZ0uNcpie
JSNnoJl3EqkMuWoy5Dgq8PMqZ0uNcpie: powershell
$ echo snap install $(what-snap JSNnoJl3EqkMuWoy5Dgq8PMqZ0uNcpie | awk '{print $2}')
snap install powershell
2 Likes