This seems like it'd be straightforward, but I can't find instructions for this anywhere, so I thought I'd ask here. Is there a way to execute a whole buffer's worth of code blocks, in an org file, and save them all in that org file, headlessly, from the command line?
Here's what I've tried so far, but it's not working (just hangs):
emacsclient -a --eval '(find-file "index.org")(org-babel-execute-buffer)(save-buffer)'