Hi,
I have just a small question regarding waf cli syntax
The 2 commands below are correct nor not ?
php joomla.php admintools:waf:set --key=allowed_domains --empty
php joomla.php admintools:waf:set --key allowed_domains --empty
Thanks
L
Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Latest post by toonetcreation on Thursday, 08 January 2026 03:54 CST
Hi,
I have just a small question regarding waf cli syntax
The 2 commands below are correct nor not ?
php joomla.php admintools:waf:set --key=allowed_domains --empty
php joomla.php admintools:waf:set --key allowed_domains --empty
Thanks
L
Both forms work, but there's a catch.
The first one (with the equals sign) is the correct UNIX-style convention and the one I would put my money on continuing to be supported for years to come. That's what you should be using, as it's an unambiguous, de facto standard.
The second syntax is "wrong" as far as the UNIX-style convention goes. The Joomla CLI application uses the Symfony Console package which currently parses that "wrong" syntax correctly. Will this be the case in the future? I don't know. If they dropped support for this syntax in the future I would not be upset, I would find it pretty logical to be honest.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!
ok thanks, I will keep the first one.
thank you
Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.
Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!