Questions tagged [cli]

Denotes questions related to CLI which is a short form of Command-Line Interface

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

CLI command without option name

I know how to create custom CLI commands with input parameters like: bin/magento customers:syncbyid --id=69, but I'd like to know how (if even possible) I can create a command with an option without a ...
user avatar
0 votes
3 answers
25 views

Proper etiquette when enabling/disabling extensions in production mode?

What is the proper protocol for enabling a custom built extension during production mode? When I run php bin/magento setup:upgrade I get the following error: The directory "/chroot/home/af3d0522/...
user avatar
  • 315
0 votes
1 answer
58 views

how can i run setup:upgrade and cli commands on windows

Hello everyone in my case i have installed Magento 2.3.4 on Windows and i need to run setup:upgrade like on Ubuntu , but it's not working for me , is this issue because on Windows we have backslash '' ...
user avatar
  • 5
0 votes
0 answers
33 views

How to remove thousands of fake customer accounts?

I'm trying to remove all fake customer accounts, but first I need to unsubscribe them from my newsletter, I have around 600k fake accounts to remove, trying to run it via admin massive action I got ...
user avatar
0 votes
1 answer
25 views

Admin input value is not accessible after adding the order increment ID while executing the command

I created a custom CLI command where I have to delete the order Items using the Order Increment ID, Item SKU. I used the ask() method after executing the command php bin/magento webkul:orderDelete ...
user avatar
0 votes
1 answer
21 views

magento2 add address to customer via cli

Using Create new customer using CLI like admin approved method as a base I have been pulling my hair out on how to extend it so I can also add an address to the created user via CLI. any assistance is ...
user avatar
0 votes
0 answers
57 views

magento 2 run comand and error showing it

when I have run upgrade command or run deploy command and below type error coming it php -dmemory_limit=5G bin/magento setup:upgrade Error: Path "." cannot be used with directory "...
user avatar
0 votes
1 answer
25 views

Problem with multiple themes deploy in Magento 2

When I execute CLI command: php bin/magento setup:static-content:deploy. It always has only 4 steps themes, but now I have multiple duplicate themes while running the command. frontend/Magento/blank/...
user avatar
  • 1
0 votes
0 answers
10 views

How to fire multiple page requests on server at the same time for a Magento 2 website

Can anyone please suggest to me how can I fire multiple page requests approx 50,000+ requests/second at the same time on a Magento 2 website to check for the server storage and request handler? Is ...
user avatar
0 votes
0 answers
55 views

error:14090086: Installing Magento Cloud CLI

Trying to install Magento Cloud CLI in my user home, I got the next error: -This is the second time. I tried to curl the installer as manual says. Successfully I've been installed MGC CLI in an ...
user avatar
0 votes
0 answers
11 views

Magento Cron Job is Running a Command It Shouldn't Be?

We have four CLI commands: submit, receive, cancel and import. The first three: submit receive and cancel are all set up to run via the cron job. However, I keep seeing in the logs that the import ...
user avatar
0 votes
2 answers
41 views

Magento 2 custom CLI file thrown error when call function from block?

What I do wrong in my cli command file? thrown error when try to clean cache like this "There are no commands defined in the "cache" namespace." class Hicustomer extends Command ...
user avatar
  • 31
0 votes
1 answer
104 views

how to call function from cli command magento 2

How can call function from block to cli command magento 2 here is my cli command class class Hicustomer extends Command { protected function configure() { $this->setName('...
user avatar
  • 31
0 votes
1 answer
152 views

Magento Cloud CLI cURL error 60: SSL certificate problem: certificate has expired

I am working on macOS Big Sure 11.6 and since Friday(01.10.) I face an issue with my Magento Cloud CLI. I was working without problems and out of a sudden, this error occurred. Has anybody faced ...
user avatar
0 votes
1 answer
20 views

Programatically mass change product prices

I am writing a module that uses a cli command get a csv file and use that to change the prices of a selection of products based on sku and new price retrieved from an CSV file. I have the logic for ...
user avatar
2 votes
0 answers
241 views

Magento 2.3 -> 2.4: CLI commands all throw "Area code is not set"

The story so far: I'm updating Magento from 2.3 to 2.4 and in doing so I'm now getting an "Area code is not set" when running any CLI command. This did not happen in 2.3 and after looking at ...
user avatar
  • 21
0 votes
1 answer
21 views

Magento or Apache 2 Permission?

I have a vm where I run ubuntu 18.04 , Apache 2 and Magento 2.3 every thing works fine but I think I'm doing something wrong with my permissions. So I have added to user 'dev' to the www-data group (...
user avatar
0 votes
0 answers
15 views

Auto configure custom widget programmatically after enabling it in Magento 2

I'm struggling with some concept of auto-configuration custom widget provided by the module. By default, the widget should be configured by the merchant, which is obvious, but my question is - is ...
user avatar
0 votes
1 answer
100 views

Issues connecting Magento Cloud to Bitbucket

Following the Bitbucket integration guide, I provided all the required permission to the Auth Consumer, and I log out and log in again with my Magento Cloud CLI, but even though I keep having this ...
user avatar
0 votes
1 answer
25 views

Magento 2.3.5 - Could we configure our installed module fields via Magento 2 CLI?

Could we actually configure our installed module fields via Magento 2 CLI? For example: # typical way to enable a Magento 2 module, via Magento 2 CLI bin/magento module:enable Acme_Acme # can we do ...
user avatar
0 votes
1 answer
26 views

magento cli error after module installation by composer

i use magetno 2.2.3 . the bin/magento cli is working fine until I add a module by composer require [module name] --ignore-platform-reqs.after that it gives me a long term error : so how should I ...
user avatar
0 votes
1 answer
135 views

magento cli not working for any command and gives a long error

i have magento 2.2.3 . for deleting cache or enabling modules or any other usage of magento cli i take one error . it begins with this phrase Unknown package has no name defined and it is continuing ...
user avatar
0 votes
1 answer
59 views

How to verify from CLI that Magento was installed successfully?

I'm running the setup:install command in an automation script to perform the initial Magento installation. How to determine in another script (POSIX sh) that the previous run of this command has been ...
user avatar
0 votes
1 answer
625 views

Trying to install Magento 2.4.1 using command line ? What is elasticsearch host?

I got this example command from the guide (tutorial) - https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli.html#install-cli-example bin/magento setup:install --base-url=http://...
user avatar
0 votes
1 answer
30 views

Magento 2 SSH reindexing not working? [duplicate]

I just installed a Magento 2.3.6 version. and I tried to run the Command Reindexing but it's not working. I tried with diff commands like cache clear and flush none of the commands are not working ...
user avatar
0 votes
0 answers
49 views

Magento migration 1.9.3.1 to 2.3.5 p2

When i doing migration from magento 1.9.3.1 to magento 2.3.5 p2 getting this error. And after search this related issue i deleted some database tables but again and again i getting this issue on ...
user avatar
2 votes
1 answer
57 views

Unable to execute cli magento commands

An abstract factory could not create an instance of magentoframeworkappdeploymentconfig(alias: Magento\Framework\App\DeploymentConfig). Above error appears on di compile, cache clean etc. I am not ...
user avatar
0 votes
1 answer
65 views

giving error "Too many arguments, expected arguments "command"." while installing magento 2.4

gatting error "Too many arguments, expected arguments "command"." while installing magento2.4 through command line.
user avatar
1 vote
1 answer
64 views

usage of ShellInterface in Magento 2

I used exec() function to run the magento commands. As exec() is not recommended used the below code . class Test{ protected $_shell; public function __construct( \Magento\Framework\...
user avatar
  • 135
0 votes
0 answers
111 views

Magento CLI Install Error Megento_Catalog

I'm trying to install Magento 2.3 from the terminal and I find the following error, does anyone know how to fix it? In PatchApplier.php line 170: ...
user avatar
  • 1
1 vote
2 answers
342 views

Magento 2 - bin/magento not working after update to magento 2.4.1

I just updated my magento from 2.4.0 to 2.4.1 via composer. But now bin/magento does not work anymore. If I execute php bin/magento list then nothing happens. I figured out that a error_log file was ...
user avatar
  • 2,402
0 votes
1 answer
167 views

composer error when running bin/magento

When I try to run a bin/magento command, I get this error: Composer file not found#0 /var/www/html/vendor/magento/framework/Composer/ComposerFactory.php(47): Magento\Framework\Composer\...
user avatar
  • 1
1 vote
1 answer
139 views

install Magento-Cloud cli at local question

I am trying to install Magento-Cloud cli to my local, however I am not familiar with the server setup, I did read thru the documentation from Magento. but I don't get it work. Please help, I am not a ...
user avatar
  • 508
0 votes
1 answer
143 views

CLI Resize ends with "Killed"

I'm trying to resize all the images in my 2.3.4 Magento database. I have about 100 images to resize. When I run the command line instruction, bin/magento catalog:images:resize , it comes back with a ...
user avatar
0 votes
1 answer
496 views

Access denied for user 'root'@'localhost' (using password: NO)

I'm trying to install Magento 2.4.0 and I keep getting the "Access Denied" for user: 'root'@'localhost' (using password: NO) I'm using Wamp64 Web Server to configure it and using Mysql 8.0....
user avatar
  • 181
0 votes
0 answers
37 views

Why package depencies error is coming in Magento 1.9. please explain

I am working on my eCommerce website called cravestore.in. My magento version is 1.9.4. I am not able to install any extensions from Magento Connect & Mage terminal both. I don't know how to fix ...
user avatar
2 votes
1 answer
601 views

Magento CLI 2.4.0 - ErrorHandler is turning PHP errors into exceptions in production mode

Preface: I prefer to develop in developer mode, have Magento catch all PHP E_NOTICE|E_WARNING|etc. errors, throw exception on them, and get these issues cleaned up before committing my code. The issue ...
user avatar
0 votes
2 answers
82 views

Log in from magento cli?

On Drupal I often log in using drush uli. It opens a one-time login URL in my browser. Is it possible to log in to the Magento backend with bin/magento?
user avatar
  • 311
1 vote
5 answers
4k views

How to install Magento 2.4

I try install fresh magento 2.4 but always available setup wizard but currently I not see setup wizard in this version. https://prnt.sc/u8eeoi How to install magento 2.4 ?
user avatar
  • 2,052
0 votes
2 answers
463 views

Table prefix error when running - setup:db-declaration:generate-whitelist

I've run the command php bin/magento setup:db-declaration:generate-whitelist --module-name={Vendor_Module} and receive the following error... Magento was installed with a table prefix. Please re-...
user avatar
  • 139
3 votes
2 answers
857 views

Unable to Create admin user from cli Magento2

Hi am trying to create an admin user from the cli while running the commands i get the following error:- # php bin/magento admin:user:create --admin-user=pramod --admin-password=pramod@123 --admin-...
user avatar
  • 1,664
3 votes
3 answers
577 views

How to run php function directly after a specific Magento 2 CLI command?

For the sake of simplicity, let's say I want to echo out "Hello World" (in reality i want to do a lot more) directly after anyone runs php bin/magento setup:di:compile. In the latest version ...
user avatar
  • 767
0 votes
2 answers
34 views

Magento2 - Run composer require without cli

I don't have access to ssh on my cpanel. How is it possible to run composer require(composer require razorpay/magento) without any cli interface?
user avatar
  • 661
0 votes
1 answer
49 views

CLI command to switch off Redis cache

There is CLI command to set up Redis as backend for Magento cache: $ ./bin/magento setup:config:set --cache-backend=redis Does any CLI command exist to switch off Redis as cache backend for Magento?
user avatar
  • 1,951
2 votes
1 answer
967 views

Can not create an instance of magentoframeworkappdeploymentconfig

I get this error when i try bin/magento comand from CLI An abstract factory could not create an instance of magentoframeworkappdeploymentconfig(alias: Magento\Framework\App\DeploymentConfig) how can ...
user avatar
0 votes
1 answer
191 views

Why does Magento Setup:Upgrade fail when ConfigurableSampleData module is updating?

I have attempted installing Magento in several ways. With and without sample data. This last time I have installed primarily using the CLI method however when I attempt to install sample data and I ...
user avatar
1 vote
1 answer
893 views

How to setup Magento Cloud + Bitbucket?

I've set up Bitbucket Pipelines to use in different Magento Commerce versions but not Magento Cloud yet. I usually do like that in Magento Open Source or Magento Commerce: How to setup CI on Magento ...
user avatar
0 votes
1 answer
2k views

How to install Magento Cloud CLI?

I'm running a Magento Commerce Cloud in my new machine and I need to install the Magento Cloud CLI. How could I do it?
user avatar
0 votes
0 answers
203 views

Magento 2 Missing required argument $areaCode of Magento\Framework\App\Area

I'm using CLI to execute a custom module, that generate a custom sales report. It has been working nicely, but it suddenly failed with the error Missing required argument $areaCode of Magento\...
user avatar
2 votes
1 answer
38 views

Cannot save custom product attribute via custom console command

I am trying to update a custom product attribute via a custom console command. The command runs, and the product seemingly saves; it never throws an exception or any form of error, yet the attribute ...
user avatar

1
2 3 4 5 6