The command line is a must-have for any serious web developer. Whether it’s running npm scripts, building projects, or working with Git, it’s always there. But let’s be real -most of us only use it when we have to, like following a tutorial or a project’s setup guide. What if we pushed it to the next level?
You’re working on a project locally (think localhost), but you need to show it off to a client or test it on your phone. How do you share it without a full deployment? Easy - a public tunnel for your localhost.
Ngrok is a nifty tool that gives your local server a temporary public URL. Perfect for demos or debugging on the fly.
ngrok authtoken YOUR_TOKEN
ngrok http 3000
Why waste time with FTP clients when you can create a backup for your project with a single command?
ssh user@server
tar -czvf backup.tar.gz /path/to/project
Boom! You’ve got a tidy backup ready to go. Save this command in Commands Manager, and you can do it even faster!
So, you’ve got that backup from step 3. Now how do you get it to your computer? Meet SCP - the quick and secure way to copy files over SSH.
scp user@server:/path/to/backup.tar.gz /local/path/
With Commands Manager, you can save this as a template with your server details pre-filled. Say goodbye to slow FTP downloads!
Before launching a site, your images need to be optimized. It speeds up load times and boosts your SEO game. Sure, you could use Photoshop or online tools like TinyPNG, but that’s a slog - especially with tons of files.
With ImageMagick and Commands Manager, you can optimize every image in a folder with one command.
brew install imagemagick # for macOS
sudo apt install imagemagick # for Linux
mogrify -resize 80% -quality 85 *.jpg
Pushing code to GitHub or another repo is something we do all the time—add files, commit, push, repeat. But typing out git add, git commit, and git push over and over gets old fast. What if you could bundle it all into one quick command?
With a simple terminal command and Commands Manager, you can automate your Git workflow.
Create a one-liner to stage, commit, and push:git add . && git commit -m "Quick update" && git push
Save this in Commands Manager as a reusable command. Next time you’re ready to push code, just run it with one click - no more typing the same Git commands endlessly.
The command line isn’t just a tool - it’s your secret weapon in web development. Pair it with Commands Manager, and you’ll automate tasks, streamline workflows, and focus on what you love - building awesome stuff. Try out these tricks and see how much power the CLI really has!