Try ERPNext Buy Support Partners Foundation

Passing argument to bench execute

Hello, is it possible to call a function that expects arguments with bench execute?


use, --args or --kargs options to pass the arguments

e.g. bench execute --args "arg1, arg2, .., argN" method_name

for more information please check, bench execute --help

Thanks, Makarand


OK thanks got it

In my case bench execute --args “arg1” was not working
instead I used bench execute --args “{‘arg1’}” this worked for me.