# The Command Line

The Command Line: Arguments, Exit Codes and Clear Errors, Settings from Environment Variables.

Updated: November 19, 2026

1. [Arguments, Exit Codes and Clear Errors](https://www.ask-codey.com/lessons/node-command-line-arguments) (Apprentice): A command-line tool reads the words typed after it with process.argv and util.parseArgs, prints a --help line, sends errors to console.error with a message a person can act on, and sets process.exitCode so the computer that ran it knows whether it worked.
2. [Settings from Environment Variables](https://www.ask-codey.com/lessons/node-environment-variables) (Apprentice): A setting that changes from one computer to another, such as where a data folder is, belongs in an environment variable, which a Node program reads from process.env with a default from ??, and which comes from the terminal or from an .env file loaded with node --env-file.

Source: https://www.ask-codey.com/courses/nodejs-in-depth/topics/node-command-line
