{"id":42285,"library":"wallace-cli","title":"Wallace CLI","description":"Wallace CLI is a command-line tool for analyzing CSS files and generating pretty analytics in the terminal. It provides statistics like number of rules, selectors, declarations, specificities, and more. The current stable version is 4.0.2, released occasionally. It is part of the Project Wallace ecosystem and is powered by the CSS Analyzer library. Unlike other CSS analysis tools, Wallace CLI offers a colorful table output and JSON format, making it easy to integrate into build pipelines. It requires Node.js >=20.12.0 and is designed for developers who want quick CSS quality insights from the terminal.","status":"active","version":"4.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/projectwallace/wallace-cli","tags":["javascript","analysis","analytics","analyze","analyzer","cli","css","performance","statistics"],"install":[{"cmd":"npm install wallace-cli","lang":"bash","label":"npm"},{"cmd":"yarn add wallace-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add wallace-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"If installed globally, 'wallace' command works; otherwise, use npx or local npm bin. No programmatic API - CLI only.","wrong":"wallace path/to/file.css","symbol":"wallace","correct":"npx wallace path/to/file.css"}],"quickstart":{"code":"npx wallace path/to/styles.css","lang":"javascript","description":"Analyzes a CSS file and prints a formatted table of CSS statistics to the terminal."},"warnings":[{"fix":"Upgrade to Node >=20.12.0.","message":"Version 4.0.0 dropped support for Node <20.12.0.","severity":"breaking","affected_versions":"<4.0.0"},{"fix":"Use 'wallace file.css --json > output.json' to capture JSON.","message":"The CLI outputs to stdout; if using --json, ensure proper piping or redirection.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use --help for clarity.","message":"The --help flag can be used as -h; -h may be confused with other commands.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'20.12.0':84 '4.0.2':39 'analysi':61,100 'analyt':18,101 'analyz':12,56,102,103 'build':79 'cli':2,4,64,104 'color':67 'command':8 'command-lin':7 'css':13,55,60,93,105 'current':35 'declar':30 'design':87 'develop':89 'easi':75 'ecosystem':49 'file':14 'format':72 'generat':16 'insight':95 'integr':77 'javascript':99 'json':71 'librari':57 'like':25 'line':9 'make':73 'node.js':83 'number':26 'occasion':41 'offer':65 'output':69 'part':44 'perform':106 'pipelin':80 'power':52 'pretti':17 'project':47 'provid':23 'qualiti':94 'quick':92 'releas':40 'requir':82 'rule':28 'selector':29 'specif':31 'stabl':36 'statist':24,107 'tabl':68 'termin':21,98 'tool':10,62 'unlik':58 'version':37 'wallac':1,3,48,63 'want':91","created_at":"2026-06-04T18:56:31.206870+00:00","updated_at":"2026-06-04T18:56:31.206870+00:00","problems":[{"fix":"Run 'npm install -g wallace-cli' or 'npx wallace-cli'.","cause":"Package not installed globally or locally.","error":"Error: Cannot find module 'wallace-cli'"},{"fix":"Ensure npm global bin is in PATH, or use 'npx wallace'.","cause":"CLI not in PATH after global install.","error":"command not found: wallace"},{"fix":"Check the pipe source; ensure CSS content is provided.","cause":"Stdin pipe sends empty data.","error":"TypeError: Input must be a string or a Buffer"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/projectwallace/wallace-cli","github":"https://github.com/projectwallace/wallace-cli","docs":null,"changelog":null,"pypi":null,"npm":"wallace-cli","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}