BASE

zx

zx

Developer CLI · Free

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

Also known as: google/zx; google-zx; zx-scripting-tool; zx-tool

Resource illustration: zx

Open resource ↗

What you can use for free

Code and local use under Apache-2.0.

Paid features and costs

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

Access and limitations

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

Use cases

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

Example workflow

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

Automate project operations in JavaScript.

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.

Choosing zx

Automate project operations in JavaScript

Choose this when

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

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.

Things to consider

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

Frequently asked questions

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.

License

Apache-2.0 for the code; third-party components retain their own terms.

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

Technologies and topics

  • zx
  • CLI
  • Development

Sources

Other resources