CS50 CLI is a Docker image with which you can (easily!) mount a directory within a container running Ubuntu 14.04. We use it to work on CS50’s own apps in a standard, contained environment, without having to install apps’ dependencies on our own Macs and PCs.) It provides a command-line environment similar, but not identical to, a terminal window on CS50 IDE; see Notes for differences.
cli50 is a command-line script that facilitates using CS50 CLI (so that you needn’t type long command lines).
Once CS50 IDE migrates from Ubuntu 14.04 LTS to Ubuntu 16.04 will CS50 CLI be migrated as well.
Assuming you already have Docker Engine,
python installed, you can install
cli50 (on Linux, Mac OS, and Windows) as follows.
pip install cli50
You can mount your current working directory within CS50 CLI as follows.
You can mount some other directory within CS50 CLI as follows, where
path/to/directory is that directory’s absolute path.
~/.gitconfig exists on your host machine, it will be mounted read-only inside of CS50 CLI.
CS50 CLI differs from a terminal window in CS50 IDE in, at least, the following ways
|CS50 CLI||CS50 IDE|
CS50 IDE will eventually be updated to bring it in parity.