@lmiller1990/imgcompare
v0.0.12
Published
CLI tool for capturing and comparing visual screenshots across test runs.
Readme
imgcompare
CLI tool for capturing and comparing visual screenshots across test runs.
Commands
init
Set up a new project. Creates a config.json in the current directory with your server URL and project ID.
imgcompare initlogin
Log in to an existing account. Saves your auth token to ~/.imgtoken.
imgcompare loginsignup
Create a new account. Saves your auth token to ~/.imgtoken.
imgcompare signupexec
Run a test command and capture screenshots when it completes. Forwards the exit code of the wrapped command.
imgcompare exec playwright test
imgcompare exec cypress runcredentials
Manage CI client credentials for machine authentication. A project owner generates a client ID and secret; CI runners exchange them for a short-lived JWT to authenticate API requests.
Generate
Creates a new client ID and secret. The secret is shown once — store it in your CI secrets (e.g. GitHub Actions secrets, GitLab CI variables).
imgcompare credentials generateCheck
Shows the active client ID, or tells you if none exists.
imgcompare credentials checkRevoke
Revokes the active credential. Required before generating a new one.
imgcompare credentials revoke