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)'
This might be of help:
More information here:
https://github.com/sylvorg/settings/blob/main/README.org#org-interpreter
There are also a bunch of resources if you search specifically
execute org files; I'd post the links, but I don't know if that would be welcome here.