Skip to content

Flags

Three you'll use most

--all skips selection prompts. --once skips the file watcher. --ci does both, plus emits machine-readable output.

Global flags

These flags can be passed to any command or to smuggle with no subcommand.

FlagDescription
-p, --path <PATH>Path to the project directory (defaults to current directory)
--allSkip interactive prompts and select all matching packages
--onceSwap packages and exit immediately (don't start the file watcher)
--ciCI mode: implies --all --once, emits NDJSON events to stdout, writes GitHub Actions job summary

Command-specific flags

smuggle publish

FlagDescription
--allPublish all non-private workspace packages (skip interactive selection)
-p, --path <PATH>Path to the package directory

smuggle add

FlagDescription
--devAdd as a devDependency instead of a dependency
--onceDon't start the file watcher after adding
-p, --path <PATH>Path to the consumer project

smuggle dev

FlagDescription
--restartKill and restart the dev server on each package change (instead of relying on HMR)
--allSkip package selection prompt
-p, --path <PATH>Path to the consumer project

smuggle unpublish

FlagDescription
--allRemove all registered packages (skip interactive selection)