Cursion DocsCursion Docs
Home
Dashboard
Home
Dashboard
  • Guides

    • Account
    • Billing
    • Selfhost
    • App
    • API
    • CLI
  • API

    • Site
    • Page
    • Scan
    • Test
    • Case
    • CaseRun
    • Flow
    • FlowRun
    • Issue
    • Schedule
    • Alert
    • Report
  • CLI

    • Site
    • Page
    • Scan
    • Test
    • Case
    • Flow

CLI

Follow these quick steps to setup your environment for working with the Cursion CLI

CLI structure

Tips

All of the CLI commands follow the same basic structure.

CommandObjectsUsage
add-<object>Site, Pagecreate object
delete-<object>Site, Pagedelete object
get-<object>sSite, Page, Scan, Testretrieve one or more objects
scan-<object>Site, Pagescan an object
test-<object>Site, Pagetest an object
run-<object>Case, Flowrun an object

CLI Setup

  1. Install Cursion CLI: pip install cursion
  2. Retrieve your API token located in your account page
  3. Configure the CLI: cursion setup and follow the prompts
  4. Check the configuation: cursion check

Docker CLI Image

This docker image provides easy access to the CLI and priorities single use commands for simple integration with CI/CD tools

Usage

docker run cursiondev/cli test-site \ 
    <site-id> \
    --threshold 85 \
    --max-wait-time 120 \
    --api-key <api_key>

For a full list of commands:

docker run cursiondev/cli --help
Last Updated:
Contributors: Landon
Prev
API