{"schemaVersion":1,"id":"commander-js","name":"Commander.js","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/commander-js/","officialUrl":"https://github.com/tj/commander.js","isCatalog":false,"description":"A Node.js command and argument parser: helps build a project tool's CLI with subcommands, options, and help.","tasks":["Create a CLI with commands and parameters","Connect parsed arguments to handlers and error diagnostics"],"categoryIds":["software","infrastructure"],"subcategoryIds":["software.cli","infrastructure.developer"],"tags":["Commander.js","CLI","Development"],"aliases":["tj/commander.js","commander.js","nodejs-command-line"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Create a CLI with commands and parameters","chooseWhen":["Create a CLI with commands and parameters","Connect parsed arguments to handlers and error diagnostics"],"considerInstead":[],"requirements":[],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","An option with a required value consumes the next argument even if it starts with a hyphen; an optional-value option behaves differently."],"faq":[{"question":"What can you use for free in Commander.js?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Commander.js?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for Commander.js?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with Commander.js?","answer":"Describe the tool's subcommands, options, and help. Connect parsed arguments to handlers and error diagnostics. Save the working command or script and the result criteria."},{"question":"How does Commander distinguish required, optional, and multiple option values?","answer":"<value> requires the following value, [value] allows a boolean without it, and ... collects multiple values. requiredOption requires an option to be set; -- ends option parsing. Unknown flags produce an error by default, and help is built from command/option descriptions."}],"related":[],"sources":["https://github.com/tj/commander.js","https://raw.githubusercontent.com/tj/commander.js/HEAD/Readme.md","https://raw.githubusercontent.com/tj/commander.js/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Create a CLI with commands and parameters.","inputs":["Project files or environment.","A shell and supported platform."],"steps":["Describe the tool's subcommands, options, and help.","Connect parsed arguments to handlers and error diagnostics.","Save the working command or script and the result criteria."],"checks":["The command correctly handles paths, Unicode, and invalid inputs.","Repeat runs behave predictably; credentials do not appear in the output."]},"sources":["https://github.com/tj/commander.js","https://raw.githubusercontent.com/tj/commander.js/HEAD/Readme.md","https://raw.githubusercontent.com/tj/commander.js/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Developer CLI","kind":"tool","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/tj/commander.js","label":"Official source"},{"url":"https://raw.githubusercontent.com/tj/commander.js/HEAD/Readme.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/tj/commander.js/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}