Skip to content
forked from bootdotdev/bootdev

A CLI used to complete coding challenges and lessons on Boot.dev

License

Notifications You must be signed in to change notification settings

eitamal/bootdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bootdev CLI

The official command line tool for Boot.dev. It allows you to submit lessons and do other such nonsense.

⭐ Hit the repo with a star if you're enjoying Boot.dev ⭐

Installation

Make sure you have Go 1.22 or later installed on your machine. Additionally, make sure that Go's bin directory is in your PATH. (Details on adding the bin directory to your PATH can be found below)

go install github.com/bootdotdev/bootdev@latest

Make sure that it works by running:

bootdev help

Then, while logged in on the Boot.dev website, authenticate your CLI with:

bootdev login

Usage

  • bootdev login - Login to Boot.dev. You'll need to login to Boot.dev in your browser and copy/paste a token.
  • bootdev logout - Logout of Boot.dev (clears your authentication token).
  • bootdev run <id> - Run a lesson locally to debug your solution.
  • bootdev submit <id> - Submit a lesson to Boot.dev.

After a submit command, results are sent to Boot.dev's servers, and then websocketed to your browser instantly, so be sure to check there after submission.

How to add Go's bin directory to your PATH

When you run go install, Go installs the binary into $HOME/go/bin by default. Add the bin directory to your PATH by modifying your shell's configuration file. For example, if you're using bash on Ubuntu (e.g. WSL), you can run the following command to add a line to your ~/.bashrc file:

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

Or if you're on Mac OS using zsh:

echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.zshrc

Next, reload your shell configuration:

source ~/.bashrc

Now you should be able to run the bootdev command (or anything else installed with go install) from your terminal.

About

A CLI used to complete coding challenges and lessons on Boot.dev

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%