Hi @sunny_gvp,
IMO, the issue could be because of:
Authentication Token / Session Not Available
AIO CLI relies on a locally cached access token or interactive login, which may not persist or be accessible in headless environments like cron.
Solution:
-
Use Service Account JWT or OAuth integration (via Adobe I/O Console) to authenticate non-interactively.
-
Configure aio config:set or use AIO_CLI_AUTH related env variables to set credentials for headless use.
Adobe guide: Using AIO CLI with Service Credentials
Working Directory or File Access
If your cron job runs in a different directory, relative paths (e.g., for saving logs) might fail silently.
Solution:
-
Use absolute paths for saving downloaded logs.
-
Add logging to your script (e.g., >> /var/log/aio-download.log) to capture output/errors.
References:
Hope that helps!