Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-line]

Denotes questions related to command line.

3
votes
1answer
877 views

Installing Magento2 Data-Migration-Tool manual without composer

How can I install the magento2 data-migration-tool manual without composer? Already I copied the complete "data-migration-tool"-folder in vendor/magento. When I try to use migrate commands (ex. "...
3
votes
3answers
2k views

Magento 2: Controlling M2 via command line – when and why to use each command

When making changes to my Magento 2 site, I usually run a few of the command line commands to 'refresh' my site to see the changes I've made. The problem is, I'm not too sure what each command really ...
32
votes
5answers
15k views

Why can't one switch back to the default mode on Magento 2?

So I have switched to the developer mode while developing on a Magento 2 project using the following command: php bin/magento deploy:mode:set developer All good, I got this message and I developed ...
0
votes
1answer
406 views

I can't run magento2 sample data after magento installation. Authentication required

I am trying to run sample data using command line. I used the following command composer config repositories.magento composer http://packages.magento.com composer require magento/sample-data:1.0.0-...
4
votes
2answers
2k views

How to inject Magento 2 commands in custom command?

To whom may concern, As the title said, I'm wondering is there anyway to inject/call/execute Magento default commands in my custom command? I'm just another guy who living in Terminal world and I'm ...
2
votes
0answers
394 views

Magento2 - Change product status programatically depending on View

I'm working in a command script to import products to a Magento2 Store. I have more than 10(1 per language) Views for the same Website/Store. I don't have any problem when a product has to be in all ...
8
votes
2answers
6k views

How to debug Magento 2 code when using command lines?

Running a script in command line is something we frequently do in Magento 2. For example, when creating new module, we must run setup:upgrade command. We cannot see all the information we need to know....
0
votes
2answers
834 views

Server error 500 after install

I installed Magento2 successfully through the commandline, but when i try to access the website, i get a Server Error 500. The server runs on Ubuntu 14.04 I have no idea what is wrong, or what i am ...
1
vote
2answers
1k views

Magento 2 cutom theme is not deployed

I have created a custom theme for Magento 2 production version. I have selected my theme from the back-end. But it renders only HTML. I deployed the static content but my theme is not in the pub\...
5
votes
3answers
6k views

Magento 2 command line install (too many arguments)

so I am trying to make a bash script in Magento, and I am learning from the bottom up. So I have the basic arguments ready to be used in the script I am making, but when I execute sudo php magento ...
-2
votes
1answer
808 views

how to call magento2 cli commands from controller? [closed]

i created some custom command.in one scenario i need to execute this command in the background in controller file. i'm trying to use following syntax.but its not working. exec('php bin/magento ...
1
vote
5answers
10k views

magento: command not found on Magento2 Already Installed through wizard

Was getting lots of issues installing, so installed Magento2 via Softaculous Installer in CPanel. Installed successfully and site & admin is accessible. NOW, however, wanting to do things via CLI ...
8
votes
5answers
3k views

Changes to CSS and JavaScript applies only after deploying static content

I installed Magento 2 from the Magento site. I have activated the developer mode by {project directory}>php bin/magento setup:mode:set developer Then I have installed my custom theme and finally ...
3
votes
3answers
3k views

Set magento deployment mode to production fails

I've installed a new Magento 2 installation with Softaculous on my hostingserver. After installation I would change the default deployment mode to production but I have the following error (using SSH):...
1
vote
4answers
2k views

First module HelloWorld in Magento 2.0 doesn't work

CentOS Linux release 7.1.1503 (Core) WHM version 11.52.1.3 (Root access) Cpanel Apache 2.4.16 PHP 5.5.30 MySQL 5.6 Magento-CE-2.0.0+Samples.* Extracted (.tar.bz2) on my server ,and ran the Setup ...
3
votes
2answers
2k views

Magento 2 di:compile command gives fatal error

I have taken reference of an old module (Bannerslider) created for Magento 2 Beta version and I am trying to convert it to Magento 2 stable compatible (Mycompany_Bannerslider). When I enable the ...
1
vote
0answers
102 views

Category URL won't update without command line reindex

Using Magento EE 1.14.0.1 with all patches installed. If I make a change to a category URL, the change will never manifest itself on the front end. Cron is running, all indexes are set to "Run When ...
0
votes
1answer
1k views

Fatal error: Class 'Mage_Install_Controller_Router_Install' not found

in site 1 , we did't installed security patches, but in site 2 we installed security patches. after copying the folder, i am getting the error as follows : Fatal error: Class '...
2
votes
1answer
690 views

Reindex command line for specific store view

I'm wondering is there any way to re-index the "Catalog Url Rewrites" of a specific store view in Magento with Multiple Stores. Is it possible to have store Id in indexer.php command-line?
1
vote
2answers
879 views

Magento command line

I'm trying to update my magento from command line. I changed mage permissions to 755 chmod 755 mage Then I launched mage-setup ./mage mage-setup But when I try other commands the following error ...
2
votes
2answers
2k views

Is it possible to get a direct link to the TAR package file of the latest release of an extension?

Everytime I need to download a Magento package, I need to do so via the Connect Marketplace and I then have to copy the URL (key) from there. For example, to download the "Log Viewer" extension, I ...
1
vote
1answer
429 views

Unable to upgrade to 1.9.2

I am only able to install 1.9.1 with the following command: ./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
5
votes
1answer
109 views

Is it possible to get the Magento indexer to display % complete?

Right now you are left wondering what is going on during indexing, especially on large catalogs where it takes hours to complete just one index. Is there an easy way to get the command line indexer....