main
1.\" Manpage for zx.
2.TH man 8 "06 Jul 2024" "8.x" "zx man page"
3.SH NAME
4zx \- the zx CLI
5.SH DESCRIPTION
6A tool for writing better scripts.
7.SH SYNOPSIS
8.SS zx\fR [\fIOPTIONS\fR] \fIURI\fR
9.SH OPTIONS
10.SS --cwd
11set current directory
12.SS --quiet
13suppress any outputs
14.SS --verbose
15enables verbose mode
16.SS --shell=<path>
17set the shell to use
18.SS --prefix=<command>
19prefix all commands
20.SS --postfix=<command>
21postfix all commands
22.SS --prefer-local, -l
23prefer locally installed packages and binaries
24.SS --eval=<js>, -e
25evaluate script
26.SS --ext=<.mjs>
27script extension
28.SS --install, -i
29install dependencies
30.SS --registry=<URL>
31npm registry, defaults to https://registry.npmjs.org/
32.SS --repl
33start repl
34.SS --env=<path>
35path to env file
36.SS --version, -v
37print current zx version
38.SS --help, -h
39print command help and options
40.SH EXAMPLES
41.TP
42.I zx --verbose script.js
43.TP
44.I zx https://example.com/script.js
45.TP
46.I zx -e '$`ls -l`'
47.SH BUGS
48https://github.com/google/zx/issues.
49.SH AUTHOR
50Anton Medvedev (https://medv.io/)