Snippets

Save the commands you repeat and run them with a tap, inside the app or from outside it.

← All documentation

A snippet is a command with a name. Typing docker compose logs -f --tail=100 on a phone is a chore; tapping "logs" is not.

Create one

From a session, open Snippets in the menu and tap +. Give it a name that tells you what it does and type the command; it can span several lines.

  • Only on and the server's name: turn it off and the snippet appears on every server.
  • Press Return for me: off, the command is typed into the prompt and waits for you to press Return. On, it runs when you tap it. It starts off, so you see what is about to run.

Use them

Tap a snippet in the list to send it to the terminal, or pin it to the key bar to keep it at hand. Snippets sync through iCloud with your other devices.

From outside the app

Turn on Run from widgets, Shortcuts and the Watch to run it without opening Basalt. It runs with nobody in front, so it should not ask for confirmation: an apt upgrade needs -y. See the widgets guide.