Skip to content
Runtime commands

Runtime commands

Every workshop binary built with worky includes a set of runtime commands for both participants and facilitators.

Command reference

CommandDescription
serve [--port N] [--open] [--detach] [--preview]Start the local web server
check [chapter-id]Run checks for a chapter and unlock the next one
statusShow all chapters with lock/unlock/complete icons
resetClear all progress
unlock <chapter-id>Manually unlock a chapter (facilitator use)
stopKill the background server
logs [-f]Show (and optionally follow) server logs

serve

Starts the local web server and serves the embedded site.

FlagDefaultDescription
--port NConfig.PortPort to listen on
--openfalseOpen browser automatically after start
--detachfalseRun server in background (writes PID + log file)
--previewfalseDisable chapter locking for content review
./my-workshop serve --open
./my-workshop serve --port 9090 --detach

check [chapter-id]

Runs all checks for a chapter. If chapter-id is omitted, auto-detects the first unlocked, incomplete chapter.

./my-workshop check        # auto-detect
./my-workshop check 01     # explicit

If all checks pass the chapter is marked complete and the next one is unlocked. See Checks for the full list of built-in validation functions.


status

Shows all chapters with icons:

  โœ…  Chapter 00: Getting Started
  ๐Ÿ”“  Chapter 01: Hello World
  ๐Ÿ”’  Chapter 02: Finishing Up

unlock <chapter-id>

Manually unlocks a chapter without running checks. Intended for facilitators who need to unblock a participant.

./my-workshop unlock 02

reset

Clears all progress. The first chapter is unlocked, all others return to locked state.

./my-workshop reset

logs

./my-workshop logs         # print log file
./my-workshop logs -f      # follow (tail -f style)

Logs are written to ~/<HomeDir>/server.log when the server is started with --detach.


stop

Stops a server started with --detach.

./my-workshop stop

If the process is unresponsive, see Troubleshooting.