Argos Command Line Interface (CLI)
The Argos Command Line Interface (CLI) offers a swift and straightforward method for uploading screenshots to the Argos visual testing platform. Ideally, this should be executed by your Continuous Integration (CI) process.
npm i --save-dev @argos-ci/cli
yarn add --dev @argos-ci/cli
pnpm add --save-dev @argos-ci/cli
bun add --dev @argos-ci/cli
Your configuration requirements may vary depending on the CI you use. Typically, you'll need to set ARGOS_TOKEN as a secret in the settings.
- Log into Argos, navigate to your project settings, and copy your
- Declare an environment variable called
ARGOS_TOKENwith the copied value.
Note: You can also specify the token with the
--token=<your-repository-token> argument. However, for security reasons, we recommend using an environment variable instead.
upload command to upload screenshots stored in your ./screenshots directory.
npm exec argos upload ./screenshots
yarn run argos upload ./screenshots
pnpm exec argos upload ./screenshots
bun x argos upload ./screenshots
To view a list of available options, use the argos help command.
npm exec argos help upload
yarn run argos help upload
pnpm exec argos help upload
bun x argos help upload