commands.sh

pueue add

all

Enqueue a task for execution.

More info →

Options (6)

-s, --stashedboolean

Add a command but do not start it if it's the first in a queue

Example: pueue add {{[-s|--stashed]}} -- {{rsync --archive --compress /local/directory /remote/directory}}
-i, --immediateboolean

Add a command to a group and start it immediately, see `pueue group` to manage groups

Example: pueue add {{[-i|--immediate]}} {{[-g|--group]}} "{{CPU_intensive}}" -- {{ffmpeg -i input.mp4 frame_%d.png}}
-g, --groupboolean

Add a command to a group and start it immediately, see `pueue group` to manage groups

Example: pueue add {{[-i|--immediate]}} {{[-g|--group]}} "{{CPU_intensive}}" -- {{ffmpeg -i input.mp4 frame_%d.png}}
-a, --afterboolean

Add a command and start it after commands 9 and 12 finish successfully

Example: pueue add {{[-a|--after]}} {{9}} {{12}} {{[-g|--group]}} "{{torrents}}" -- {{transmission-cli torrent_file.torrent}}
-l, --labelboolean

Add a command with a label after some delay has passed, see `pueue enqueue` for valid datetime formats

Example: pueue add {{[-l|--label]}} "{{compressing large file}}" {{[-d|--delay]}} "{{wednesday 10:30pm}}" -- "{{7z a compressed_file.7z large_file.xml}}"
-d, --delayboolean

Add a command with a label after some delay has passed, see `pueue enqueue` for valid datetime formats

Example: pueue add {{[-l|--label]}} "{{compressing large file}}" {{[-d|--delay]}} "{{wednesday 10:30pm}}" -- "{{7z a compressed_file.7z large_file.xml}}"

Examples (6)

Add any command to the default queue

Pass a list of flags or arguments to a command when enqueuing

pueue add -- command --arg -f

Add a command but do not start it if it's the first in a queue

pueue add [-s|--stashed] -- rsync --archive --compress /local/directory /remote/directory

Add a command to a group and start it immediately, see `pueue group` to manage groups

pueue add [-i|--immediate] [-g|--group] "CPU_intensive" -- ffmpeg -i input.mp4 frame_%d.png

Add a command and start it after commands 9 and 12 finish successfully

pueue add [-a|--after] 9 12 [-g|--group] "torrents" -- transmission-cli torrent_file.torrent

Add a command with a label after some delay has passed, see `pueue enqueue` for valid datetime formats

pueue add [-l|--label] "compressing large file" [-d|--delay] "wednesday 10:30pm" -- "7z a compressed_file.7z large_file.xml"
made by @shridhargupta | data from tldr-pages