Skip to content

command

command is a built-in function. It runs a single shell command exactly as you wrote it on the button.

Parameter Required Default Meaning
command yes The shell command to run

Run one command as written

Show kernel button
- name: Show kernel
  type: button
  function: command
  command: "uname -a"

Pipes and chained commands

Commands run through /bin/bash -c, so pipes, redirects, and && all work inside one command value.

Pipes work inside commands

Top processes button
- name: Top processes
  type: button
  function: command
  command: "ps aux --sort=-%mem | head -n 10"

Use a custom function for repeated commands

If several buttons repeat the same command shape, create a custom function and give each button only the values that change. Custom parameter names such as url or host can be written directly on those buttons.