Skip to content

Instantly share code, notes, and snippets.

@BboyAkers
Created April 18, 2020 01:43
Show Gist options
  • Save BboyAkers/26f12a68bb358b4552f5f6e786414fa0 to your computer and use it in GitHub Desktop.
Save BboyAkers/26f12a68bb358b4552f5f6e786414fa0 to your computer and use it in GitHub Desktop.

What is a CLI?

A CLI or Command Line Interface Interface is an in interface that accepts text input to execute operating system functions. As a software developer we use CLI's all the time. What exactly does a CLI look like? Open your terminal on Mac or command prompt(powershell works too) if you are on Windows. As a developer we use the terminal and/or command prompt to:

  • install packages
  • run scripts
  • manage project files

and more. Something you might be familiar with in the web development world is this

npm install <package name>

In that example in the CLI, we are using the package manager npm to install a package of our choice!

Installation

Use the package manager pip to install foobar.

pip install foobar

Usage

import foobar

foobar.pluralize('word') # returns 'words'
foobar.pluralize('goose') # returns 'geese'
foobar.singularize('phenomena') # returns 'phenomenon'

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment