Is it possible to run pyrevit scripts outside of Revit?

We would like to run some scripts automatically from a server, rather than manually from inside Revit.

Was thinking something similar to the ability to run AddIn from Forge/APS:

Hi @Oded_F, welcome to the forum!

Did you take a look at the pyrevit cli batch editing feature?

As an alternative, you can leverage the runtime api library and create your endpoints to run the scripts.

Note that you always need a revit instance to run the code into; this is exactly what design automation does, running a headless instance of revit and executing the addin with the provided files and parameters

Thanks Andrea,

Will check both options.