{"schemaVersion":1,"id":"zx","name":"zx","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/zx/","officialUrl":"https://github.com/google/zx","isCatalog":false,"description":"Helps write shell workflows in JavaScript: combines command execution with async code, arguments, and result handling.","tasks":["Automate project operations in JavaScript","Connect command execution to async logic and result handling"],"categoryIds":["software","infrastructure"],"subcategoryIds":["software.cli","infrastructure.developer"],"tags":["zx","CLI","Development"],"aliases":["google/zx","google-zx","zx-scripting-tool","zx-tool"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under Apache-2.0.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"Apache-2.0 for the code; third-party components retain their own terms.","selectionGuide":{"purpose":"Automate project operations in JavaScript","chooseWhen":["Automate project operations in JavaScript","Connect command execution to async logic and result handling"],"considerInstead":[],"requirements":["Choose the shell for the script's environment. The documentation provides useBash, usePowerShell, and usePwsh, or direct configuration through $.shell; external commands must be available in that environment."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: Apache-2.0 for the code; third-party components retain their own terms.","zx adds JavaScript logic on top of the shell and child_process. Choosing PowerShell or Bash changes the command language; a portable JavaScript file alone does not establish the portability of every utility it calls."],"faq":[{"question":"What can you use for free in zx?","answer":"Code and local use under Apache-2.0."},{"question":"What additional costs might arise with zx?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for zx?","answer":"Apache-2.0 for the code; third-party components retain their own terms."},{"question":"How do you get started with zx?","answer":"Describe the sequence of shell operations and input parameters. Connect command execution to async logic and result handling. Save the working command or script and the result criteria."},{"question":"Can zx run with PowerShell instead of Bash?","answer":"Yes. The official documentation describes usePowerShell and usePwsh, as well as selecting a shell through the API, CLI, or environment. The wrapper supports parallel operations and result handling, while the selected shell executes the commands themselves."}],"related":[],"sources":["https://github.com/google/zx","https://raw.githubusercontent.com/google/zx/HEAD/README.md","https://raw.githubusercontent.com/google/zx/HEAD/LICENSE","https://www.open-source-tools.com/","https://google.github.io/zx/shell"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Automate project operations in JavaScript.","inputs":["Project files or environment.","A shell and supported platform."],"steps":["Describe the sequence of shell operations and input parameters.","Connect command execution to async logic and result handling.","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/google/zx","https://raw.githubusercontent.com/google/zx/HEAD/README.md","https://raw.githubusercontent.com/google/zx/HEAD/LICENSE","https://www.open-source-tools.com/","https://google.github.io/zx/shell"],"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 Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/google/zx","label":"Official source"},{"url":"https://raw.githubusercontent.com/google/zx/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/google/zx/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://google.github.io/zx/shell","label":"Official source"}],"licenseGuides":[{"id":"apache-2","title":"Apache 2.0 — permissive license with patent terms","scope":null,"summary":"You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.","url":"https://www.apache.org/licenses/LICENSE-2.0"}],"entryIds":[],"composition":null}