diff --git a/src/commands/local.mjs b/src/commands/local.mjs index ec1b7ef3..99910b8f 100644 --- a/src/commands/local.mjs +++ b/src/commands/local.mjs @@ -81,12 +81,24 @@ function buildLocalCommand(yargs) { ); } return true; - }); + }) + .example([ + ["$0 local", "Start a Fauna container with default name and ports."], + ["$0 local --name local-fauna", "Start a container named 'local-fauna'."], + [ + "$0 local -hostPort 1234 --containerPort 6789", + "Map host port '1234' to container port '6789'. Equivalent to '-p 1234:6789' in Docker.", + ], + [ + "$0 local --no-pull", + "Don't pull the latest image before starting the container.", + ], + ]); } export default { command: "local", - describe: "Start a local Fauna container", + describe: "Start a local Fauna container.", builder: buildLocalCommand, handler: startLocal, };