Skip to content

jabrena/aoc-cli

Repository files navigation

AOC CLI

A Java CLI to interact with Advent of Code (AoC) programmatically. The CLI handles authentication, input downloading, answer submission, and stats checking.

Setup

  • Go to https://adventofcode.com and log in
  • Open browser developer tools (F12)
  • Go to Application/Storage → Cookies → https://adventofcode.com
  • Copy the value of the session cookie
  • Store the value in .env with the key AOC_API_KEY=xxx or set environment variable AOC_API_KEY with export AOC_API_KEY=xxx

Usage

./mvnw clean verify

java -jar target/aoc-cli-0.1.0.jar --help
java -jar target/aoc-cli-0.1.0.jar test
java -jar target/aoc-cli-0.1.0.jar pending
java -jar target/aoc-cli-0.1.0.jar pending 2024
java -jar target/aoc-cli-0.1.0.jar problem 2024 1_1
java -jar target/aoc-cli-0.1.0.jar input 2024 1
java -jar target/aoc-cli-0.1.0.jar submit 2024 1 1 123
java -jar target/aoc-cli-0.1.0.jar stats 2024

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •