# zx

[BASE product page](<https://base.akulich.dev/en/library/zx/>) · [Resource](<https://github.com/google/zx>)

ID: zx · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

Helps write shell workflows in JavaScript: combines command execution with async code, arguments, and result handling\.

## Type

Developer CLI

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/zx/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/zx/#resource-access>)

Code and local use under Apache\-2\.0\.

## [Paid features and costs](<https://base.akulich.dev/en/library/zx/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/zx/#resource-access>)

Code and local use under Apache\-2\.0\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/zx/#resource-tasks>)

- Automate project operations in JavaScript
- Connect command execution to async logic and result handling

## Category IDs

- software
- infrastructure

## Subcategory IDs

- software\.cli
- infrastructure\.developer

## Tags

- zx
- CLI
- Development

## Also known as

- google/zx
- google\-zx
- zx\-scripting\-tool
- zx\-tool

## [Selection purpose](<https://base.akulich.dev/en/library/zx/#resource-selection>)

Automate project operations in JavaScript

## [Choose this when](<https://base.akulich.dev/en/library/zx/#resource-selection>)

- Automate project operations in JavaScript
- Connect command execution to async logic and result handling

## [Requirements](<https://base.akulich.dev/en/library/zx/#resource-selection>)

- 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](<https://base.akulich.dev/en/library/zx/#resource-selection>)

- 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\.

## [Questions before use](<https://base.akulich.dev/en/library/zx/#resource-faq>)

### What can you use for free in zx?

Code and local use under Apache\-2\.0\.

### What additional costs might arise with zx?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for zx?

Apache\-2\.0 for the code; third\-party components retain their own terms\.

### How do you get started with zx?

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\.

### Can zx run with PowerShell instead of Bash?

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\.

## Sources for the selection guide

- [https://github\.com/google/zx](<https://github.com/google/zx>)
- [https://raw\.githubusercontent\.com/google/zx/HEAD/README\.md](<https://raw.githubusercontent.com/google/zx/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/google/zx/HEAD/LICENSE](<https://raw.githubusercontent.com/google/zx/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://google\.github\.io/zx/shell](<https://google.github.io/zx/shell>)

## [Possible workflow](<https://base.akulich.dev/en/library/zx/#resource-scenario>)

Automate project operations in JavaScript\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- Project files or environment\.
- A shell and supported platform\.

## Steps

1. Describe the sequence of shell operations and input parameters\.
2. Connect command execution to async logic and result handling\.
3. Save the working command or script and the result criteria\.

## Check your result

- The command correctly handles paths, Unicode, and invalid inputs\.
- Repeat runs behave predictably; credentials do not appear in the output\.

## [License](<https://base.akulich.dev/en/library/zx/#resource-license>)

Apache\-2\.0 for the code; third\-party components retain their own terms\.

## License explanations for the specified scope

### Apache 2\.0 — permissive license with patent terms

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\.

[License terms](<https://www.apache.org/licenses/LICENSE-2.0>)

## [Sources](<https://base.akulich.dev/en/library/zx/#resource-sources>)

- [Official source](<https://github.com/google/zx>)
- [Official source](<https://raw.githubusercontent.com/google/zx/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/google/zx/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://google.github.io/zx/shell>)

## Editorial review date

2026\-10\-06

## Editorial review scope

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\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
