Command-Line Interface (CLI)

Linux

View the CLI releases to choose and download the appropriate package for your operating system.

If you're unsure what architecture your processor has, the command uname -m should tell you.

Extract the binary using tar -xzvf FILENAME, e.g.

1
tar -xzvf exercism-linux-32bit.tgz

Place the binary in your PATH, e.g.:

1
2
3
mkdir ~/bin
mv exercism ~/bin/
export PATH=$HOME/bin:$PATH

You will want to stick the export PATH=$HOME/bin:$PATH line into your shell configuration. E.g. if your shell is bash, you could run:

1
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc

To check which shell you have, run echo $SHELL.

Package Managers

These are not officially supported, and sometimes (often) lag behind the latest release.

There's a freshports build, an AUR package, and an openSUSE package.

Verify

Verify that the binary was installed properly by running:

1
exercism --version

To see all the commands available to you, run exercism without any options:

1
exercism

Configuring the CLI

Configure the exercism client so that it knows which account to post your solutions to:

1
exercism configure --key=YOUR_API_KEY

Your exercism API key can be found in your account.

By default the CLI will fetch exercises to ~/exercism. You can configure a different directory by passing the --dir option:

1
exercism configure --dir=~/some/other/place

Continue

You can now continue by choosing a language.

If you need help, view the help on exercism.io, join the exercism.io chat on gitter: Join the chat at https://gitter.im/exercism/support

Want to add more help topics?

The code for this documentation is in the exercism.io repository on GitHub. Submit a pull request or open an issue with suggestions!

(Check out the ./x/docs/cli.rb and ./app/views/site/cli.erb files.)