To understand this create a sample Node.js script and execute script with some arguments. For example, assuming the following script for process-args.js:
Launching the Node.js process as:
node process-args.js hello "Rahul Kumar" 123
Would generate the output:
0: /usr/local/bin/node 1: /home/rahul/process-args.js 2: hello 3: Rahul Kumar 4: 123
To access the single argument, simply use process.argv[INDEX] option. Change index number as per your need.