11 · The Command Line

Command Chaining

Run commands in sequence

Joining commands on one line: “;” runs them in order no matter what; “&&” runs the next only if the previous succeeded; “||” only if it failed. Different from a pipe, which passes data along.

Concrete example

“npm install && npm run build” builds only if the install actually succeeded.