Given I don't have GUI access to Magento, is there any command that I can run to be able to disable the secret key add for the URL's from terminal ?

1 Answer 1


Run this in magento's installation directory:

bin/magento config:set admin/security/use_form_key 0

Or if you use n98-magerun:

n98-magerun2 config:store:set admin/security/use_form_key 0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.