Command line

CodeMeal 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

Every release ships a .sha256 file next to each archive. Download it alongside the archive and check them against each other — if the hashes match, the file you have is byte-for-byte the one the build produced.

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

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. Sessions last about an hour — run codemeal login again if a command tells you you're unauthorized.