Easy Way to Create CLI Scripts with JavaScript and Node
ฝัง
- เผยแพร่เมื่อ 8 ก.พ. 2025
- Did you know you can use JavaScript to build scripts to help automate tedious tasks? Let's say you want to bulk rename a list of files? Or you want to name your photos according to their dates? Ever been there before?
In this video, let's look at how to create CLI scripts with JavaScript and Node.js. We'll set up a new project using the create-node-cli package and integrate it with the Chuck Norris API.
EXCLUSIVE 20% Off Coupon - NodeCLI.com/co...
Create Node CLI Repo - github.com/ahm...
Chuck Norris API - www.icndb.com/...
Twilio Article on Node CLIs - www.twilio.com...
_____________________________________________
Newsletter 🗞
Interested in exclusive content and discounts? 🤯 Sign up for the newsletter!
www.jamesqquic...
_____________________________________________
Connect with me 😀
Live streams on Twitch - / jamesqquick
Follow me on Twitter - / jamesqquick
Join the 💬 Discord Server 💬 - / discord
_____________________________________________
COURSES 💻
Learn how to build Fullstack apps with React and Serverless Functions - www.jamesqquic...
Learn everything you need to know about Visual Studio Code - www.udemy.com/...
Build a Quiz App - www.udemy.com/...
I love javascript and as a student and self-taught developer, it would be a great opportunity to learn from this course.
I have learned electron js and I think I could make something great with this CLI knowledge.
"There is my email... Don't email me please" You are the best James! Great video
hahahahah thank you!
after 60 minutes of my finite life lost searching for it, bommmm you were the chosen one. thanks for the tips.
haha glad you enjoyed!
This Node CLI course would be a great help for me to improve my skills, building cli tools to automate part of my work routine!
I have to run a lot of scripts to prepare data and interact with a database. This course will be perfect to master my scripts.
I will use this video to make snmp requests from cli. Thanks again!
Happy to help. :)
I've always wanted to do automation tasks without learning a new language like Python. I would really love to do it with the language I know and love (JavaScript) and this course can help me achieve that 🙏
14:30, James, you a dirty boy 🤭😂
Always fun. Thanks you James
Ahmad making it and you endorsing it makes me curious enough. That and the fact that I automate all the things so very interested in a new tool in my belt.
I don't love Javascript, but I'm interested in the course. Maybe it will change my mind.
You are awesome! This is what I would train now!
Since my favorite language is JavaScript and Node is the framework that I’m working on. So Node CLI, for sure, is get me interested. Nonetheless, I hope that I get the best tools from you, James:).
Hey Sokun, thanks for sharing. Congratulations, you are one of the winners. :) Can you send me an email at james.q.quick@gmail.com?
npx awais
and now npx destin
I bought Ahmads course a while back and love it
I want to love Javascript like you. Totally new to the language.
It's a fun one but takes time to get comfortable wiht like anything else.
This would help me progress some scripts I need to implement at work
Yay!!! 🙌
If your team needs a subscription - feel free to reach out.
@@AhmadAwais will do!
how to run the cli like "my-cli -d" instead of "./index.js -d"?
What do u use for autocompletion in terminal at 3:32?
I want to know that too, pretty awesome!
🙋♂️ same
It's called Fig :)
fig.io/
Your videos are very awesome 👌 👏 👍
Thank you :)
I'm a sucker for automation, i usually do it with python, but i would like to push myself to do it with node to get better at it, this course would be a great kick start.
This is great stuff. One thing that was really confusing to me was about how the index.js magically became executable just by adding a permission until I watched some other videos that explained the shebang functionality that actually tells the terminal how to run this file in node... you might have explained that here but I missed that piece of information. The content was really helpful overall - thanks!
Ah great callout. Thanks for sharing that!
How are those recommendations coming in you terminal, may I know the plugin you use for zsh please
I’m interested as well to know 😅
It's a plugin called fig - fig.io/
Amazing video sir!
BIG respect for filtering out the profanity. Class act.
Instant sub.
What is the color theme you are using in VSCode? It looks great!
same, so cool!
Midnight Synth
Next time to "chmod +x filename" instead, it's proper practice.
Thanks for the useful video!😃
What's the addon you use for the console autocomplete suggestions? That looks neat
Hi, great video! I'm looking to create a sdk around our apis at work. I liked the aws cdk pattern and was going to do something similar. I'm interested in the course if still available. Thx!
Glad to hear that. The first hour is free in case you'd like to try.
I've tried to make a quick template scaffolding cli in Node. It works but isn't extensible, and I'm out of ideas. I think the course might give me a boost...
Happy to hear that. There's a 2 hour course project in there where I did just that. Created a CLI that can create CLIs. But if that's not your game, there are 21 more projects.
@@AhmadAwais great!
can you show us around with all your terminal config stuff, plug-ins, themes etc. plsssss??
I use this stuff to setup my server when doing a fresh install from Git with .env defaults for headless deployment.
Super fun ain't it.
You love JavaScript? How? Do you know other languages?
Any experience with the sugested course? I consider enrolling and would love to hear if it is worth it. Have got the free preview and still in doubt, so far mostly setup and basics.... Thank you
and what is this extension that shows the package size and all that jazz??
Hi, What theme you are using sir ?
Which VS Code theme you are using?
Hey dude, great video. I have a question, how is called the plug-in (or whatever it is) that shows you list-like suggestions in terminal? Thanks!
It's called Fig :)
@@JamesQQuick Thank you!
What's your theme pls pls pls, it looks nice.
Hey James, do you have any videos on how to edit existing react sites? I'm a new dev and the previous dev made the apps in vscode. I can't get the app to compile or debug, keeps missing things even though I've run npm install to get the dependencies.
I’m starting with bash to introduce a little bit of automation into my project, I have some issues can somebody help?
Does anybody knows how does he get that sweet autocompletion on the terminal?
Bash is gross as you mentioned 😂. But if I’m able to create a CLI using JS , my preferred language then boom 🤯! It’ll be great to learn to create a CLI using JS.
What about publishing/packaging? Great video!
The coupon doesn't work - it doesn't change the 100 USD price
Did you click to buy? After clicking that it shows me the discount at $80
You have to click buy or just copy past the coupon in your checkout process. Happy to help.
The fact that most of the packages don't have types is a huge dealbreaker for me. When I'm working on an application, even something this small, I need to know the shape of my data so that I know how I can manipulate it. Getting red squiggles in VSCode is the opposite of a good workflow.
Our company has its own framework for server side rendering react apps. We really are in need of a custom cli for our framework. Since we are at iran, because of sanctions we have trouble purchasing any course. So i think we'd really appreciate one copy.
Either way tnx for your tutorials
I lead a dev team at a start up. Being able to improve workflows and quality of life for my team is very important to me.
Hey Judge, thanks for sharing. Congratulations, you are one of the winners. :) Can you send me an email at james.q.quick@gmail.com?
or use deno
Deno is an exciting option!
100 laik :)
I mean, I just need it lol.
Yeah, there's probably not much need to be learning BASH if you don't have a handle on it already, unless you want to do stuff "server side", but man, this is lot of tooling and support libraries for something built in to *NIX.
Had to laugh at ch(ange)mod(e) and permissions, though... in the amount of time you took to explain that you weren't going to explain it, you literally could have explained it.
lol I'll keep that timing in mind next time
Hahah explicit or dirty :p
Bro this is great video but I think you need to wash your face no offense. It's just looking like it has some oil. You have good face don't worry just saying.
Well, this is not supposed to be easy LOL
Hey James! Great video! Thanks for all your content.
I wanted to let you know I finished my CLI. I hope you all check it out. It’s a tool to add Auth0 the a Sveltekit project and it seems to be working wonderfully. Takes about 5-10 minutes to be up and running with Authentication in a sveltekit project.
npx create-sveltekit-auth0
Would love to know what you think and hope it’s a tool many can use.
Thanks again James for your inspiration! Peace to you man.
Were you able to somehow remove stuff like --noClear?
just use go guys