-d is used to pass ini values via the command line. Unfortunately there is no way to disable an extension per command line if it has been configured in the php.ini (You can follow the other answers of course but there is nothing you can do using -d or whatever option of the php command)