- Assertion Testing
- Async Hooks
- Buffer
- C++ Addons
- C/C++ Addons - N-API
- Child Processes
- Cluster
- Command Line Options
- Console
- Crypto
- Debugger
- Deprecated APIs
- DNS
- Domain
- ECMAScript Modules
- Errors
- Events
- File System
- Globals
- HTTP
- HTTP/2
- HTTPS
- Inspector
- Internationalization
- Modules
- Net
- OS
- Path
- Performance Hooks
- Process
- Punycode
- Query Strings
- Readline
- REPL
- Stream
- String Decoder
- Timers
- TLS/SSL
- Trace Events
- TTY
- UDP/Datagram
- URL
- Utilities
- V8
- VM
- Worker Threads
- Zlib
Node.js v10.24.1 Documentation
Table of Contents
-
- Synopsis
-
-----abort-on-uncaught-exception--completion-bash--enable-fips--experimental-modules--experimental-repl-await--experimental-vm-modules--experimental-worker--force-fips--icu-data-dir=file--inspect-brk[=[host:]port]--inspect-port=[host:]port--loader=file--insecure-http-parser--max-http-header-size=size--napi-modules--no-deprecation--no-force-async-hooks-checks--no-warnings--openssl-config=file--pending-deprecation--preserve-symlinks--preserve-symlinks-main--prof--prof-process--redirect-warnings=file--throw-deprecation--title=title--tls-cipher-list=list--tls-max-v1.2--tls-min-v1.0--tls-min-v1.1--tls-min-v1.2--trace-deprecation--trace-event-categories--trace-event-file-pattern--trace-events-enabled--trace-sync-io--trace-warnings--track-heap-objects--unhandled-rejections=mode--use-bundled-ca,--use-openssl-ca--v8-options--v8-pool-size=num--zero-fill-buffers-c,--check-e,--eval "script"-h,--help-i,--interactive-p,--print "script"-r,--require module-v,--version
-
NODE_DEBUG=module[,…]NODE_DEBUG_NATIVE=module[,…]NODE_DISABLE_COLORS=1NODE_EXTRA_CA_CERTS=fileNODE_ICU_DATA=fileNODE_NO_WARNINGS=1NODE_OPTIONS=options...NODE_PATH=path[:…]NODE_PENDING_DEPRECATION=1NODE_PRESERVE_SYMLINKS=1NODE_REDIRECT_WARNINGS=fileNODE_REPL_HISTORY=fileNODE_TLS_REJECT_UNAUTHORIZED=valueNODE_V8_COVERAGE=dirOPENSSL_CONF=fileSSL_CERT_DIR=dirSSL_CERT_FILE=fileUV_THREADPOOL_SIZE=size
Command Line Options#
Node.js comes with a variety of CLI options. These options expose built-in debugging, multiple ways to execute scripts, and other helpful runtime options.
To view this documentation as a manual page in a terminal, run man node.
Synopsis#
node [options] [V8 options] [script.js | -e "script" | -] [--] [arguments]
node inspect [script.js | -e "script" | <host>:<port>] …
node --v8-options
Execute without arguments to start the REPL.
For more info about node inspect, please see the debugger documentation.
Options#
All options, including V8 options, allow words to be separated by both
dashes (-) or underscores (_).
For example, --pending-deprecation is equivalent to --pending_deprecation.
-#
Alias for stdin, analogous to the use of - in other command line utilities, meaning that the script will be read from stdin, and the rest of the options are passed to that script.