Command line

Code Meal CLI

Solve problems from your own terminal, in your own editor. Browse problems, pull down a starter file, run the tests, and submit — without opening a browser.

Your editor, your setup

Write solutions in the editor you already use, with your own keybindings, plugins and theme — not a browser text box.

Run before you submit

Public test cases run first and show you exactly what failed. Only then does it offer to submit against the private ones.

Progress stays in sync

Submissions and solved counts go to the same account as the website, so your stats and roadmap progress stay in one place.

Sign in once

A single 'codemeal login' opens your browser, and the token is kept in your OS keychain — never in a plain file.

Download

Loading builds…

Installing

It's a single binary — no runtime, no dependencies.

Unpack it and move the binary onto your PATH.

$ tar -xzf ~/Downloads/codemeal_*_darwin_*.tar.gz
$ sudo mv codemeal /usr/local/bin/
$ codemeal --version

“Apple could not verify codemeal is free of malware”

macOS shows this for any command-line tool downloaded from the internet that isn't signed with an Apple Developer certificate. It isn't a malware detection — Gatekeeper is saying it can't check who built it. Remove the download quarantine flag and it will run:

$ xattr -d com.apple.quarantine /usr/local/bin/codemeal

Verifying your download

Each archive's SHA-256 is listed under SHA-256 checksums with the downloads above. Hash the file you downloaded and compare the two — if they match, what you have is byte-for-byte what the build produced.

$ shasum -a 256 codemeal_<version>_<os>_<arch>.tar.gz

Using it

A full run through one problem, start to finish.

1

Sign in

Opens your browser to sign in with Google or GitHub, then stores the token in your system keychain.

$ codemeal login
2

Find something to solve

Lists problems with their ID, difficulty and acceptance rate. Filter with --title or --difficulty.

$ codemeal problem list
3

Start the problem

Prints the problem statement and examples, then writes a starter file to ~/.codemeal/solutions/ for you to open in your editor.

$ codemeal problem solve 42
4

Run and submit

Runs the public test cases and shows what failed. If they all pass, it asks before running the private ones.

$ codemeal problem submit 42
5

Check your progress

Your solved counts by difficulty, track and tag — the same numbers as the website.

$ codemeal problem stats

Run codemeal --help, or codemeal <command> --help, to see every command and flag. Your session renews itself, so you should only need codemeal login again if you have been away for a month or more.

Reference

Every command and flag, written out — installation through to a quick-reference card.

CodeMeal CLI User Manual

18 pages covering installing, the revision loop, mock interviews, scripting, and a reference entry for every command.