Input is randomized for each user, so you need to be authenticated using your session cookie.
-
Find session cookie on AoC site after logging in under Chrome Developer Tools -> Application -> Cookies.
-
Create a file called
.session
with contents:session=YOUR_SESSION_COOKIE
-
Run the following to programmatically retrieve the day's input:
curl -b "$(cat .session)" -o dayXX_input.txt https://adventofcode.com/20XX/day/XX/input