CLICommands

lore

snug lore <COMMAND>

Lore - Interactive story runtime: sessions, player commands, checkpoints.

Subcommands

CommandWhat it does
createCreate a session for a published story
devCreate a dev session from inline compiled lore output
listList your sessions
getGet a session by ID
deleteDelete (stop) a session
commandSend a fire-and-forget command to a running session
stepAdvance a running session one step and print the resulting story events
checkpointSave a checkpoint for a session
checkpointsList the checkpoints saved for a session
load-checkpointLoad a checkpoint's data for a session

Run snug lore <command> --help for that command's own options. The global options apply everywhere.

Examples

snug lore create -u universe-1 -s story-1 --auto-start
snug lore create -u universe-1 -s story-1 -c before_boss -i '{"difficulty":"hard"}'
snug lore dev -o @compiled.json --auto-start
snug lore list
snug lore get <session_id>
snug lore delete <session_id> -f
snug lore step <session_id>
snug lore step <session_id> -e ready -d '{"index":1}'
snug lore command <session_id> -e stop
snug lore checkpoint <session_id> -n save1 -d '{"position":42}'
snug lore checkpoints <session_id>
snug lore load-checkpoint <session_id> -n save1

Next

On this page