Easy Way to Create CLI Scripts with JavaScript and Node

  Рет қаралды 49,756

James Q Quick

James Q Quick

2 жыл бұрын

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/coupon/JQQ-DISCOU...
Create Node CLI Repo - github.com/ahmadawais/create-...
Chuck Norris API - www.icndb.com/api/
Twilio Article on Node CLIs - www.twilio.com/blog/how-to-bu...
_____________________________________________
Newsletter 🗞
Interested in exclusive content and discounts? 🤯 Sign up for the newsletter!
www.jamesqquick.com
_____________________________________________
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.jamesqquick.com/courses/r...
Learn everything you need to know about Visual Studio Code - www.udemy.com/learn-visual-st...
Build a Quiz App - www.udemy.com/build-a-quiz-ap...

Пікірлер: 86
@promethewz3457
@promethewz3457 2 жыл бұрын
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.
@franckbossy
@franckbossy 2 жыл бұрын
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!
@ajimbong1623
@ajimbong1623 2 жыл бұрын
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 🙏
@destinlee
@destinlee 2 жыл бұрын
Always fun. Thanks you James
@alegr44
@alegr44 2 жыл бұрын
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.
@mahneh7121
@mahneh7121 2 жыл бұрын
Wow, you have improved a lot. Well done.
@FranciscoMarcosMilhomemAbreu
@FranciscoMarcosMilhomemAbreu 2 жыл бұрын
You are awesome! This is what I would train now!
@TomHermans
@TomHermans 2 жыл бұрын
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.
@StefanoPompa
@StefanoPompa 2 жыл бұрын
I will use this video to make snmp requests from cli. Thanks again!
@AhmadAwais
@AhmadAwais 2 жыл бұрын
Happy to help. :)
@alexandprivate1
@alexandprivate1 2 жыл бұрын
"There is my email... Don't email me please" You are the best James! Great video
@JamesQQuick
@JamesQQuick 2 жыл бұрын
hahahahah thank you!
@adnanelegeek
@adnanelegeek 2 жыл бұрын
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.
@_barcodes
@_barcodes 2 жыл бұрын
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.
@sokunmeng38
@sokunmeng38 2 жыл бұрын
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:).
@JamesQQuick
@JamesQQuick 2 жыл бұрын
Hey Sokun, thanks for sharing. Congratulations, you are one of the winners. :) Can you send me an email at james.q.quick@gmail.com?
@shadowplay1211
@shadowplay1211 2 жыл бұрын
how to run the cli like "my-cli -d" instead of "./index.js -d"?
@diegognoatto8706
@diegognoatto8706 Жыл бұрын
after 60 minutes of my finite life lost searching for it, bommmm you were the chosen one. thanks for the tips.
@JamesQQuick
@JamesQQuick Жыл бұрын
haha glad you enjoyed!
@nicetomeetugaming7024
@nicetomeetugaming7024 2 жыл бұрын
Amazing video sir!
@Dude29
@Dude29 2 жыл бұрын
What's the addon you use for the console autocomplete suggestions? That looks neat
@destinlee
@destinlee 2 жыл бұрын
npx awais and now npx destin I bought Ahmads course a while back and love it
@RealCaptainAwesome
@RealCaptainAwesome 2 жыл бұрын
I don't love Javascript, but I'm interested in the course. Maybe it will change my mind.
@leewenger4401
@leewenger4401 Жыл бұрын
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!
@JamesQQuick
@JamesQQuick Жыл бұрын
Ah great callout. Thanks for sharing that!
@richardmartin4479
@richardmartin4479 2 жыл бұрын
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!
@AhmadAwais
@AhmadAwais 2 жыл бұрын
Glad to hear that. The first hour is free in case you'd like to try.
@seanlearns2code
@seanlearns2code 2 жыл бұрын
I want to love Javascript like you. Totally new to the language.
@JamesQQuick
@JamesQQuick 2 жыл бұрын
It's a fun one but takes time to get comfortable wiht like anything else.
@yahyotech
@yahyotech 2 жыл бұрын
Your videos are very awesome 👌 👏 👍
@JamesQQuick
@JamesQQuick 2 жыл бұрын
Thank you :)
@StefanSchade721229
@StefanSchade721229 2 жыл бұрын
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
@thebetacoders4738
@thebetacoders4738 2 жыл бұрын
Which VS Code theme you are using?
@johnm8358
@johnm8358 2 жыл бұрын
This would help me progress some scripts I need to implement at work
@AhmadAwais
@AhmadAwais 2 жыл бұрын
Yay!!! 🙌 If your team needs a subscription - feel free to reach out.
@johnm8358
@johnm8358 2 жыл бұрын
@@AhmadAwais will do!
@dein-ding
@dein-ding 2 жыл бұрын
can you show us around with all your terminal config stuff, plug-ins, themes etc. plsssss??
@baj_
@baj_ 2 жыл бұрын
What about publishing/packaging? Great video!
@rollotomasi1832
@rollotomasi1832 2 жыл бұрын
Next time to "chmod +x filename" instead, it's proper practice. Thanks for the useful video!😃
@pollettoimpanato
@pollettoimpanato 2 жыл бұрын
What do u use for autocompletion in terminal at 3:32?
@andrewlopez6881
@andrewlopez6881 2 жыл бұрын
I want to know that too, pretty awesome!
@rodrigoespinozadev
@rodrigoespinozadev 2 жыл бұрын
🙋‍♂️ same
@JamesQQuick
@JamesQQuick 2 жыл бұрын
It's called Fig :)
@JamesQQuick
@JamesQQuick 2 жыл бұрын
fig.io/
@liltripple_reid8917
@liltripple_reid8917 2 жыл бұрын
Does anybody knows how does he get that sweet autocompletion on the terminal?
@ahmedahmedx9600
@ahmedahmedx9600 Жыл бұрын
Hi, What theme you are using sir ?
@dein-ding
@dein-ding 2 жыл бұрын
and what is this extension that shows the package size and all that jazz??
@giulioserra8553
@giulioserra8553 Жыл бұрын
I’m starting with bash to introduce a little bit of automation into my project, I have some issues can somebody help?
@vishnudarshan4762
@vishnudarshan4762 2 жыл бұрын
How are those recommendations coming in you terminal, may I know the plugin you use for zsh please
@rodrigoespinozadev
@rodrigoespinozadev 2 жыл бұрын
I’m interested as well to know 😅
@JamesQQuick
@JamesQQuick 2 жыл бұрын
It's a plugin called fig - fig.io/
@cristobalgajardovera5433
@cristobalgajardovera5433 2 жыл бұрын
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!
@JamesQQuick
@JamesQQuick 2 жыл бұрын
It's called Fig :)
@cristobalgajardovera5433
@cristobalgajardovera5433 2 жыл бұрын
@@JamesQQuick Thank you!
@Stoney_Eagle
@Stoney_Eagle 2 жыл бұрын
I use this stuff to setup my server when doing a fresh install from Git with .env defaults for headless deployment.
@AhmadAwais
@AhmadAwais 2 жыл бұрын
Super fun ain't it.
@chyldstudios
@chyldstudios 2 жыл бұрын
What is the color theme you are using in VSCode? It looks great!
@PhongTran-yy1oc
@PhongTran-yy1oc 2 жыл бұрын
same, so cool!
@yorgosdimitriadis3874
@yorgosdimitriadis3874 Жыл бұрын
Midnight Synth
@nikhilmwarrier7948
@nikhilmwarrier7948 2 жыл бұрын
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...
@AhmadAwais
@AhmadAwais 2 жыл бұрын
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.
@nikhilmwarrier7948
@nikhilmwarrier7948 2 жыл бұрын
@@AhmadAwais great!
@thatsalot3577
@thatsalot3577 Жыл бұрын
What's your theme pls pls pls, it looks nice.
@shashanksalunkhe416
@shashanksalunkhe416 2 жыл бұрын
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.
@igorskyflyer
@igorskyflyer Жыл бұрын
14:30, James, you a dirty boy 🤭😂
@yadusolparterre
@yadusolparterre 2 жыл бұрын
The coupon doesn't work - it doesn't change the 100 USD price
@JamesQQuick
@JamesQQuick 2 жыл бұрын
Did you click to buy? After clicking that it shows me the discount at $80
@AhmadAwais
@AhmadAwais 2 жыл бұрын
You have to click buy or just copy past the coupon in your checkout process. Happy to help.
@willjohnson4579
@willjohnson4579 2 жыл бұрын
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.
@judgejlo
@judgejlo 2 жыл бұрын
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.
@JamesQQuick
@JamesQQuick 2 жыл бұрын
Hey Judge, thanks for sharing. Congratulations, you are one of the winners. :) Can you send me an email at james.q.quick@gmail.com?
@DavidWoodMusic
@DavidWoodMusic 2 жыл бұрын
BIG respect for filtering out the profanity. Class act. Instant sub.
@trochymiak
@trochymiak 2 жыл бұрын
100 laik :)
@kevinmccabe741
@kevinmccabe741 2 жыл бұрын
You love JavaScript? How? Do you know other languages?
@GCoda
@GCoda Жыл бұрын
or use deno
@JamesQQuick
@JamesQQuick Жыл бұрын
Deno is an exciting option!
@chrisdizzle313
@chrisdizzle313 2 жыл бұрын
I mean, I just need it lol.
@motr3bam867
@motr3bam867 2 жыл бұрын
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
@codingwithdidem
@codingwithdidem 2 жыл бұрын
Hahah explicit or dirty :p
@auntiecarol
@auntiecarol 2 жыл бұрын
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.
@JamesQQuick
@JamesQQuick 2 жыл бұрын
lol I'll keep that timing in mind next time
@fidellivino
@fidellivino 11 ай бұрын
Well, this is not supposed to be easy LOL
@lorenzovelasque3668
@lorenzovelasque3668 Жыл бұрын
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.
@LeeCharles1968
@LeeCharles1968 2 жыл бұрын
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.
@jannismilz
@jannismilz 2 жыл бұрын
Were you able to somehow remove stuff like --noClear?
@ahmo4781
@ahmo4781 2 ай бұрын
just use go guys
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 22 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 65 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 5 МЛН
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 13 МЛН
Setup a Template-CLI for Quickly Instantiating Projects
16:35
Redis Caching in Node.js
17:42
Traversy Media
Рет қаралды 227 М.
What Makes A Good Cli Tool | Prime Explains
4:26
ThePrimeTime
Рет қаралды 59 М.
This Makes Golang CLI Development So MUCH Better
7:34
Melkey
Рет қаралды 21 М.
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Рет қаралды 406 М.
Tips For Using Async/Await in JavaScript
16:26
James Q Quick
Рет қаралды 395 М.
NodeJS | NPM | InquirerJS Beginner Tutorial
31:48
Markodex
Рет қаралды 4,1 М.
NODE.JS COURSE FROM SCRATCH: Introduction and First Steps
2:18:31
Node.js
3:10:58
Yandex for Frontend
Рет қаралды 71 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 22 МЛН