Setting Up The Environment For Your First (or Next) Ruby CLI Application

Maxwell Harvey Croy
The Startup
Published in
4 min readJun 17, 2020

--

As you learn to code, you’ll want to tackle more complicated projects to flex the skills you’ve developed thus far. Learning about Object Orientation, Classes, Enumerables, and other Ruby basics is great, but eventually, you’re going to hit a point where it’s time to put those concepts to the test creatively. Enter the Ruby CLI Application — the next stop on your journey to master Ruby.

Not a command-line, and not even Ruby code, but hey, stock photos only get you so much.
Photo by Fabian Grohs on Unsplash

If you don’t know, CLI stands for Command-Line Interface. When we build programs with Ruby, we receive our feedback from the command-line in the form of errors, calculations, or that cute message you decided to try and puts. It’s important to know, though, that the command-line can do a lot more. It’s immensely powerful, and a lot of that power comes from small programs or scripts that programmers just like you build to accomplish their problems of the day. git is an example of a CLI application with a considerable impact, and ultimately, building your own CLI application isn’t that different from what the Git team did to get their idea off of the ground.

With that said, getting started is always the hardest part. When building a CLI application, it’s essential that you begin with setting up your environment correctly to make sure your future application meets standard conventions. Let’s walk through what your…

--

--

Maxwell Harvey Croy
The Startup

Music Fanatic, Software Engineer, and Cheeseburger Enthusiast. I enjoy writing about music I like, programming, and other things of interest.