Score:0

ddev Too many arguments, expected arguments "command" "key"

cz flag

I'm trying to run

ddev exec drush state:set system.maintenance_mode 1

With MAMP drush state:set system.maintenance_mode 1 works fine. With ddev I get the error:

Too many arguments, expected arguments "command" "key".

I've tried every possible variation of this command I could think of, also using ddev ssh. Nothing works.

Am I missing something? Is this impossible with ddev?

leymannx avatar
ne flag
It's either `ddev exec "drush state:set system.maintenance_mode 1"` with the quotes or `ddev drush state:set system.maintenance_mode 1` without `exec`. Which version of DDEV? `ddev --version`?
Arthur Sauer avatar
cz flag
version is v1.17.7
leymannx avatar
ne flag
If have the same version. `ddev drush state:set system.maintenance_mode 1` without `exec` works.
Arthur Sauer avatar
cz flag
ddev exec drush "state:set system.maintenance_mode 1" <br/> ddev drush "state:set system.maintenance_mode 1" <br/> ddev drush state-set "system.maintenance_mode 1" <br/> ddev exec drush state-set "system.maintenance_mode 1" <br/> ddev exec drush state:set "system.maintenance_mode 1" <br/> ddev drush state:set "system.maintenance_mode 1" <br/> I could try more versions, but shouldn't this be documented somewhere? At least, I could not find it...
Arthur Sauer avatar
cz flag
I can't edit this comment anymore. Only for 5 minutes while I try to discover why line breaks don't work. Two spaces for a line break don't work here...
Arthur Sauer avatar
cz flag
@leymannx Trying both versions, I get the error: Too many arguments, expected arguments "command" "key".
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.