Error installing CLI packages - Fatal error: Allowed memory size exhausted

Worth noting I bumped the memory_limit too, and still get the same issue.

max_execution_time = 1200
max_input_time = 600
max_input_vars = 4000
memory_limit = 1024M
post_max_size = 1000M
max_file_uploads = 20
output_buffering = 4096