Difference between php bin/magento and bin/magento

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
3
down vote

favorite












In Magento when we run any command we use 'php bin/magento' and sometimes it runs also with 'bin/magento'



So can any one explain what is the actual difference in these commands.



Thanks in advance.










share|improve this question



























    up vote
    3
    down vote

    favorite












    In Magento when we run any command we use 'php bin/magento' and sometimes it runs also with 'bin/magento'



    So can any one explain what is the actual difference in these commands.



    Thanks in advance.










    share|improve this question























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      In Magento when we run any command we use 'php bin/magento' and sometimes it runs also with 'bin/magento'



      So can any one explain what is the actual difference in these commands.



      Thanks in advance.










      share|improve this question













      In Magento when we run any command we use 'php bin/magento' and sometimes it runs also with 'bin/magento'



      So can any one explain what is the actual difference in these commands.



      Thanks in advance.







      magento2 command-line






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 29 at 4:20









      Charul Tyagi

      47211




      47211




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          9
          down vote



          accepted










          There is no difference between these two command.



          php bin/magento


          php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.



          bin/magento


          bin/magento command will find the golbal php variable and use that,



          Note: in both cases it will use the php variable






          share|improve this answer



























            up vote
            1
            down vote













            Its same things :)



            But generaly adding PHP you can choose to add command line option
            see PHP features commandline options



            php -c /custom/directory/custom-file.ini bin/magento [command]


            By omitting it ... it is the default version of the system that is used



            It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI



            you can see something like this on debian... depending of your compilation and version



            #php -v
            PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
            Copyright (c) 1997-2018 The PHP Group
            Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
            with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
            with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans





            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "479"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f239988%2fdifference-between-php-bin-magento-and-bin-magento%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              9
              down vote



              accepted










              There is no difference between these two command.



              php bin/magento


              php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.



              bin/magento


              bin/magento command will find the golbal php variable and use that,



              Note: in both cases it will use the php variable






              share|improve this answer
























                up vote
                9
                down vote



                accepted










                There is no difference between these two command.



                php bin/magento


                php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.



                bin/magento


                bin/magento command will find the golbal php variable and use that,



                Note: in both cases it will use the php variable






                share|improve this answer






















                  up vote
                  9
                  down vote



                  accepted







                  up vote
                  9
                  down vote



                  accepted






                  There is no difference between these two command.



                  php bin/magento


                  php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.



                  bin/magento


                  bin/magento command will find the golbal php variable and use that,



                  Note: in both cases it will use the php variable






                  share|improve this answer












                  There is no difference between these two command.



                  php bin/magento


                  php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.



                  bin/magento


                  bin/magento command will find the golbal php variable and use that,



                  Note: in both cases it will use the php variable







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 29 at 6:44









                  AddMage

                  4544




                  4544






















                      up vote
                      1
                      down vote













                      Its same things :)



                      But generaly adding PHP you can choose to add command line option
                      see PHP features commandline options



                      php -c /custom/directory/custom-file.ini bin/magento [command]


                      By omitting it ... it is the default version of the system that is used



                      It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI



                      you can see something like this on debian... depending of your compilation and version



                      #php -v
                      PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
                      Copyright (c) 1997-2018 The PHP Group
                      Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
                      with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
                      with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans





                      share|improve this answer
























                        up vote
                        1
                        down vote













                        Its same things :)



                        But generaly adding PHP you can choose to add command line option
                        see PHP features commandline options



                        php -c /custom/directory/custom-file.ini bin/magento [command]


                        By omitting it ... it is the default version of the system that is used



                        It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI



                        you can see something like this on debian... depending of your compilation and version



                        #php -v
                        PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
                        Copyright (c) 1997-2018 The PHP Group
                        Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
                        with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
                        with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans





                        share|improve this answer






















                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          Its same things :)



                          But generaly adding PHP you can choose to add command line option
                          see PHP features commandline options



                          php -c /custom/directory/custom-file.ini bin/magento [command]


                          By omitting it ... it is the default version of the system that is used



                          It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI



                          you can see something like this on debian... depending of your compilation and version



                          #php -v
                          PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
                          Copyright (c) 1997-2018 The PHP Group
                          Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
                          with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
                          with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans





                          share|improve this answer












                          Its same things :)



                          But generaly adding PHP you can choose to add command line option
                          see PHP features commandline options



                          php -c /custom/directory/custom-file.ini bin/magento [command]


                          By omitting it ... it is the default version of the system that is used



                          It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI



                          you can see something like this on debian... depending of your compilation and version



                          #php -v
                          PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
                          Copyright (c) 1997-2018 The PHP Group
                          Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
                          with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
                          with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Aug 29 at 5:40









                          Joss Eve

                          112




                          112



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f239988%2fdifference-between-php-bin-magento-and-bin-magento%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay