Node.js executable package for downloading Advent of Code available challenge descriptions and input data.
npx advent-cli --session <SESSION_COOKIE> .
-
<TARGET_DIR>
(defaults toCWD
)Which dir to use for content downloads.
-
--year
(defaults to current year)Set which year to target for download
-
--session <SESSION>
Set
session
cookie. Required for input data download as everyone receives unique inputs.AOC_SESSION
environment variable is also checked as fallback.Note: you can also use
.env
file in target dir orCWD
to define environment variables. -
--no-session
Use this to load descriptions only without data inputs.