Command Line (Terminal)

When using a computer, most people are familiar with a graphical interface to do their work with. Most operating systems give you the ability to drag and drop folders, create new files, install programs with easy buttons to press that provide you with nice pop-up responses and so on.

The Command Line (also know as the terminal) is simply a text-based computer experience.

Now this may be less exciting for users, however, it also means you have many more commands available to you. In fact, you have every command available to you that a computer understands.

Opening the Terminal

Mac

On a Mac, the Command Line is named “Terminal”. So just do a Spotlight search for “Terminal” and it will be the first application listed.

Windows

For Windows, we run Git Bash as an Administrator.

To do this, click the “Start” button and search for “Git Bash”. Then right-click on “Git Bash” and hit “Run as administrator”.

Useful Commands

ls

This command stands for “list” and it lists all the files of the current folder you’re in.

Example:

ls

cd

This command stands for “change directory” and it will change the current folder you’re in to wherever you tell it.

Example:

cd ~/Desktop

will take you to the Desktop if you are on a Mac.

For Windows users, just type:

cd

Now you can type:

ls

to see a list of items on your desktop!

Moovweb Commands

Most of the commands we’ll be using involve using the Moovweb SDK.

To learn more about these commands check out our command line documentation or continue with our Getting Started Tutorial!

Git Commands

We recommend using Git for version control.

Git is basically a way of saving your work at different points in time so you never lose the code you’ve written and can always jump around between different versions of your project!

Git can be run from the command line, but there are also a number of visual tools for Windows, Mac, and Linux. For basic Git project management, any of them should work well.

Check out some useful Git commands you’ll be using here.