PHP can have different settings for the command-line mode and web-server modes.
For checking a setting value for the command line mode, execute the following console command from the bin/magento
folder:
php -i | grep <setting name>
For example:
php -i | grep memory_limit