Terminal UI
Run decoy with no subcommand to start the server with an interactive log of every request. It
takes the same flags as decoy serve. Type / to run a command. Commands act on the active
Session, which is default until you pick another with /session.
Commands
Reload
/reload re-reads the config from the same flags and files decoy started with, then serves the
new Routes, Collections and settings. A request takes maxBodyBytes when it arrives and the Routes
and Selections once its body is read, so one whose body is still uploading during a reload keeps
the old limit but is matched against the new config. If the new config doesn't load, /reload
prints the error and the old config keeps serving.
Listeners stay bound as they started: changes to the port, host, listeners or TLS need a restart,
and /reload warns listener changes need restart.
Every Session keeps its Selection, with three exceptions:
- A Session that never picked a Collection follows the new default Collection.
- A Session whose picked Collection is gone falls back to the default Collection, with a warning.
- An override whose
route:case:behavioraddress no longer exists is dropped, with a warning.
Keys
Enter after /session <id> switches to exactly the id typed, even when the popup offers a longer
seen one; press Tab first to take the suggestion.