Shef
Published on: 2025-06-24 05:16:54
Shef
Shef, a wordplay on "shell" and "chef", is a powerful CLI tool for cooking up shell recipes without the mess.
Inspired by CyberChef, Shef allows you to pipe commands together, add interactive user prompts, loop using complex control structures, and build reusable workflows with advanced conditional logic.
Quick Start Example
The following example showcases a simple Shef recipe, giving you a quick glance at the syntax and functionality.
The recipe polls an unavailable endpoint, displaying its status, until it returns a 200 status code.
recipes : - name : " monitor " description : " Monitor a service until it returns a success status code " category : " demo " operations : - name : " Initialize Empty Status Code " id : " status_code " command : echo "" silent : true - name : " Health Check " control_flow : type : " while " condition : .status_code != "200" || .status_code == "" operations : - name : " Check Service Status " id : " status_code " command : | # simulate a status
... Read full article.