zx

(★ 45,683)

A tool for writing better scripts

File Explorer

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

node
Prerequisites

Setup Steps

npm install zx

Install the zx package.

Key Commands

npm install zx

Install the zx package as a dependency.

Can be executed in Node.js, Bun, or Deno runtime environments.

# Use via CDN

jsDelivr

jsDelivr 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

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

dep

View Details ▼

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 ▼

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 ▼

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`:

// repository documentation