---
title: "Discussion on \"How to take command line arguments in NodeJS?\" | Hashnode"
description: "Discussion on \"How to take command line arguments in NodeJS?\". Taking arguments from the command line is very common. You can take certain arguments you need as variables, certain flags, etc. In NodeJS, it's very easy\nProcess Object\nNodeJS exposes an array of argument values in the form of process.argv.\nExample\n..."
url: "https://hashnode.com/posts/how-to-take-command-line-arguments-in-nodejs/60b9a71ae7631679eb8de268"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to take command line arguments in NodeJS?](https://livecode247.com/how-to-take-command-line-arguments-in-nodejs?utm_source=hashnode&utm_medium=feed)

Taking arguments from the command line is very common. You can take certain arguments you need as variables, certain flags, etc. In NodeJS, it's very easy Process Object NodeJS exposes an array of argument values in the form of process.argv. Example ...

Jun 4, 2021 · 1 min read · livecode247.com  
Updated Mar 2, 2022  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#terminal](https://hashnode.com/tag/terminal)
-   [#terminal-command](https://hashnode.com/tag/terminal-command)
-   [#cli](https://hashnode.com/tag/cli)

## Written by

[Kavin Desi Valli](https://hashnode.com/@kavinvalli)

@kavinvalli · Delhi, India

  
[View profile](https://hashnode.com/@kavinvalli)

Fullstack Developer

I am a developer from Delhi, India

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
