zx
A tool for writing better scripts
File Explorer
- codeql-config.yml
- bug.yml
- idea.yml
- index.html
- codeql.yml
- dev-publish.yml
- docs.yml
- jsr-publish.yml
- osv.yml
- publish.yml
- test.yml
- zizmor.yml
- FUNDING.yml
- PULL_REQUEST_TEMPLATE.md
- SECURITY.md
- 3rd-party-licenses
- cli.cjs
- cli.d.ts
- cli.js
- core.cjs
- core.d.ts
- core.js
- deno.js
- deps.cjs
- deps.d.ts
- error.d.ts
- esblib.cjs
- globals.cjs
- globals.d.ts
- globals.js
- goods.d.ts
- index.cjs
- index.d.ts
- index.js
- internals.cjs
- internals.d.ts
- log.d.ts
- md.d.ts
- util.cjs
- util.d.ts
- vendor-core.cjs
- vendor-core.d.ts
- vendor-extra.cjs
- vendor-extra.d.ts
- vendor.cjs
- vendor.d.ts
- versions.d.ts
- Dockerfile
- custom.css
- index.js
- MyLayout.vue
- MyOxygen.vue
- config.mts
- apple-touch-icon.png
- favicon-16x16.png
- favicon-32x32.png
- favicon.ico
- safari-pinned-tab.svg
- logo.png
- logo.svg
- og-image.png
- .gitignore
- api.md
- architecture.md
- cli.md
- configuration.md
- contribution.md
- faq.md
- getting-started.md
- index.md
- known-issues.md
- lite.md
- markdown.md
- migration-from-v7.md
- process-output.md
- process-promise.md
- quotes.md
- setup.md
- shell.md
- typescript.md
- versions.md
- background-process.mjs
- backup-github.mjs
- fetch-weather.mjs
- hello.mjs
- interactive.mjs
- npm-oidc-enable.mjs
- parallel.mjs
- zx.1
- build-clean.mjs
- build-dts.mjs
- build-js.mjs
- build-jsr.mjs
- build-pkgjson-lite.mjs
- build-pkgjson-main.mjs
- build-size-limit.mjs
- build-tests.mjs
- build-versions.mjs
- deno.polyfill.js
- import-meta-url.polyfill.js
- npm-audit.js
- cli.ts
- core.ts
- deps.ts
- error.ts
- globals-jsr.ts
- globals.ts
- goods.ts
- index.ts
- internals.ts
- log.ts
- md.ts
- repl.ts
- util.ts
- vendor-core.ts
- vendor-extra.ts
- vendor.ts
- versions.ts
- buf-join.mjs
- package.json
- script.js
- package.json
- script.ts
- tsconfig.json
- argv.mjs
- copyright.txt
- echo.http
- exit-code.mjs
- filename-dirname.mjs
- interactive.mjs
- markdown-crlf.md
- markdown.md
- md.http
- no-extension
- no-extension.mjs
- non-std-ext.zx
- require.mjs
- server.mjs
- build-dcr.test.js
- build-jsr.test.js
- build-npm.test.js
- bun.test.js
- deno.test.js
- node.test.cjs
- node.test.mjs
- ts.test.ts
- tsconfig.json
- tsconfig.test.json
- win32.test.js
- all.test.js
- cli.test.js
- core.test.js
- deps.test.js
- error.test.ts
- export.test.js
- extra.test.js
- global.test.js
- goods.test.ts
- index.test.js
- log.test.ts
- md.test.ts
- util.test.js
- vendor.test.js
- core.test-d.ts
- globals.test-d.ts
- goods.test-d.ts
- .commitlintrc
- .gitattributes
- .gitignore
- .node_version
- .nycrc
- .prettierignore
- .size-limit.json
- lefthook.yml
- LICENSE
- package-lock.json
- package.json
- README.md
- tsconfig.json
- zizmor.yml
# Installation Guide
nodeSetup Steps
npm install zx
Install the zx package.
Key Commands
npm install zx
Install the zx package as a dependency.
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Release Timeline
- 2025-10-19 8.8.5 — Temporary Reservoir
- 2025-09-26 8.8.4 — Flange Coupling
- 2025-09-20 8.8.3 — Sealing Gasket
- 2025-09-19 8.8.2 — Leaking Valve
- 2025-08-20 8.8.1 — Turbo Flush
- 2025-08-05 8.8.0 — Pressure Tested
- 2025-07-29 8.7.2 — Copper Crafter
- 2025-07-14 8.7.1 — Pipe Whisperer
- 2025-07-11 8.7.0 — Solder Savior
- 2025-07-09 8.6.2 — Flow Unstoppable
Command Glossary
Commands referenced in this DOCs, explained below.
dep
View Details ▼
dep
Deploy PHP applications.
Note: The Go command `dep` with the same name is deprecated and archived.
dep init
Interactively initialize deployer in the local path (use a framework template with `--template=template`):
dep deploy {{hostname}}
Deploy an application to a remote host:
dep rollback
Rollback to the previous working release:
git branch
View Details ▼
git branch
Main Git command for working with branches.
git branch {{[-a|--all]}}
List all branches (local and remote; the current branch is highlighted by `*`):
git branch {{[-a|--all]}} --contains {{commit_hash}}
List which branches include a specific Git commit in their history:
git branch --show-current
Show the name of the current branch:
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
