Skip to content

jholm117/hackerrank-cli

Repository files navigation

hackerrank-cli

CLI for the HackerRank for Work API.

Install

brew install jholm117/tap/hr

Or download from Releases.

Auth

hr auth login    # prompts for API token
hr auth status   # show current auth

Generate a token at HackerRank Settings → API.

You can also set HACKERRANK_API_TOKEN or pass --token.

Usage

# List tests
hr tests list

# List candidates for a test
hr candidates list --test <test-id>

# Get candidate source code
hr candidates code <test-id> <candidate-id>

# Save code to files
hr candidates code <test-id> <candidate-id> --save ./submissions

# List interviews
hr interviews list

# Get interview transcript
hr interviews transcript <interview-id>

All commands support --output json for machine-readable output.

Development

make build       # build binary
make test        # run tests
make lint        # run golangci-lint
make setup-hooks # install pre-push hook

About

CLI tool for HackerRank for Work API - pull candidate submissions, reports, and test data

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors