# How To Pragmatically Set A Prefix Argument

Via here, in this example it handles the situation when you want to run Magit but haven’t got a project file open:

(let ((current-prefix-arg '(4)))
(call-interactively #'magit-status))