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?

@RWEMA_Aimable,

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

4 Likes

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.