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.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 29 at 4:20









      Charul Tyagi

      38110




      38110




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          7
          down vote













          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
              7
              down vote













              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
                7
                down vote













                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
                  7
                  down vote










                  up vote
                  7
                  down vote









                  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

                  4194




                  4194






















                      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













































































                              Comments

                              Popular posts from this blog

                              What does second last employer means? [closed]

                              Installing NextGIS Connect into QGIS 3?

                              One-line joke