Percy CLI commands for running a local snapshot server using @percy/core
.
Start and stop Percy around a supplied command
USAGE
$ percy exec
OPTIONS
-P, --port=port [default: 5338] server port
-c, --config=config configuration file path
-h, --allowed-hostname=allowed-hostname allowed hostnames to capture in asset discovery
-q, --quiet log errors only
-t, --network-idle-timeout=network-idle-timeout asset discovery network idle timeout
-v, --verbose log everything
--debug debug asset discovery and do not upload snapshots
--disable-cache disable asset discovery caches
--parallel marks the build as one of many parallel builds
--partial marks the build as a partial build
--silent log nothing
EXAMPLES
$ percy exec -- echo "percy is running around this echo command"
$ percy exec -- yarn test
Pings a local running Percy snapshot server
USAGE
$ percy exec:ping
OPTIONS
-P, --port=port [default: 5338] server port
-q, --quiet log errors only
-v, --verbose log everything
--silent log nothing
Starts a local Percy snapshot server
USAGE
$ percy exec:start
OPTIONS
-P, --port=port [default: 5338] server port
-c, --config=config configuration file path
-h, --allowed-hostname=allowed-hostname allowed hostnames to capture in asset discovery
-q, --quiet log errors only
-t, --network-idle-timeout=network-idle-timeout asset discovery network idle timeout
-v, --verbose log everything
--debug debug asset discovery and do not upload snapshots
--disable-cache disable asset discovery caches
--silent log nothing
EXAMPLES
$ percy exec:start
$ percy exec:start &> percy.log
Stops a local running Percy snapshot server
USAGE
$ percy exec:stop
OPTIONS
-P, --port=port [default: 5338] server port
-q, --quiet log errors only
-v, --verbose log everything
--silent log nothing