Skip to content

Latest commit

 

History

History
 
 

cli-exec

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@percy/cli-exec

Percy CLI commands for running a local snapshot server using @percy/core.

Commands

percy exec

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

percy exec:ping

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

percy exec:start

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

percy exec:stop

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