### Install QualWeb CLI Source: https://github.com/qualweb/cli/blob/master/README.md Install the QualWeb CLI globally using npm. This command is required before running any evaluations. ```shell $ npm i -g @qualweb/cli ``` -------------------------------- ### QualWeb CLI JSON Configuration Example Source: https://github.com/qualweb/cli/blob/master/README.md Configure QualWeb CLI evaluations using a JSON file. This method replaces all other command-line options and allows for detailed configuration of evaluation parameters. ```json { "url": "https://act-rules.github.io/pages/about/", "file": "test_url.txt", "crawl": "https://act-rules.github.io", "viewport": { "mobile": false, "orientation": "landscape", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:22.0) Gecko/20100101 Firefox/22.0', default value for mobile = 'Mozilla/5.0 (Linux; U; Android 2.2; en-us; DROID2 GLOBAL Build/S273) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1", "width": 1920, "height": 1080 }, "maxParallelEvaluations": "5", "modules": { "act": true, "wcag": true, "bp": true, "counter": false, }, "act-rules": { "rules": ["QW-ACT-R1"], "exclude": ["QW-ACT-R2"], "levels": ["A", "AA", "AAA"], "principles": ["Perceivable", "Operable", "Understandable", "Robust"] }, "wcag-techniques": { "rules": ["QW-WCAG-T1"], "exclude": ["QW-WCAG-T2"], "levels": ["A", "AA", "AAA"], "principles": ["Perceivable", "Operable", "Understandable", "Robust"] }, "best-practices": { "bestPractices": ["QW-BP1"], "exclude": ["QW-BP2"] } } ``` -------------------------------- ### Run Simple URL Evaluation Source: https://github.com/qualweb/cli/blob/master/README.md Perform a basic accessibility evaluation on a given URL. This is the most straightforward way to start an evaluation. ```shell $ qw -u https://act-rules.github.io/pages/about/ ``` -------------------------------- ### Best Practices Configuration Source: https://github.com/qualweb/cli/blob/master/README.md Use this JSON configuration to specify best practices and exclusions. This can replace command-line arguments for `--best-practices` and `--exclude-bp`. ```json { "best-practices": { "bestPractices": ["QW-BP1"], "exclude": ["QW-BP2"] } } ``` -------------------------------- ### Run File Input Evaluation Source: https://github.com/qualweb/cli/blob/master/README.md Evaluate multiple URLs by providing a file containing a list of URLs, each separated by a newline. This is efficient for batch evaluations. ```shell $ qw -f urls.txt ``` -------------------------------- ### WCAG Techniques Configuration Source: https://github.com/qualweb/cli/blob/master/README.md Use this JSON configuration to specify WCAG techniques, exclusions, levels, and principles. This can replace command-line arguments for `--wcag-techniques`, `--wcag-levels`, and `--wcag-principles`. ```json { "wcag-techniques": { "techniques": ["QW-WCAG-T1"], "exclude": ["QW-WCAG-T2"], "levels": ["A", "AA", "AAA"], "principles": ["Perceivable", "Operable", "Understandable", "Robust"] } } ``` -------------------------------- ### Run File Input Evaluation with EARL Report Source: https://github.com/qualweb/cli/blob/master/README.md Evaluate multiple URLs from a file and generate an EARL report for each URL. This allows for detailed analysis of individual URLs in a batch. ```shell $ qw -f urls.txt -r earl ``` -------------------------------- ### Run File Input Evaluation with Aggregated EARL Report Source: https://github.com/qualweb/cli/blob/master/README.md Evaluate multiple URLs from a file and generate a single, aggregated EARL report. Use the -s option to specify a custom name for the report file. ```shell $ qw -f urls.txt -r earl-a # add `-s ` to rename the report file ``` -------------------------------- ### Run URL Evaluation with EARL Report Source: https://github.com/qualweb/cli/blob/master/README.md Evaluate a URL and generate a report in the EARL (Evaluation and Report Language) format. This format is useful for structured reporting. ```shell $ qw -u https://act-rules.github.io/pages/about/ -r earl ``` -------------------------------- ### ACT Rules Configuration Source: https://github.com/qualweb/cli/blob/master/README.md Use this JSON configuration to specify ACT rules, exclusions, levels, and principles. This can replace command-line arguments for `--act-rules`, `--act-levels`, and `--act-principles`. ```json { "act-rules": { "rules": ["QW-ACT-R1"], "exclude": ["QW-ACT-R2"], "levels": ["A", "AA", "AAA"], "principles": ["Perceivable", "Operable", "Understandable", "Robust"] } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.