It's called running SAS in batch mode. This link describes the details for SAS running on Windows.
This should call @ChrisHemedinger .
Correct, you can't run EG projects from a command line. You can run them from VBScripts though and you can export the SAS code from your project if you must use a command line.
SAS in batch mode is only possible when you have a local SAS installation, or have access to the commandline on the SAS server.
To run an Enterprise Guide project in batch, you need to run software that mimics EG (or uses EG in "background" mode), and this is described by @ChrisHemedinger 's articles.
EG provides the option of exporting the whole project code to a single .sas file, but this is only helpful if you do not use task nodes that use EG's special capabilities (importing/exporting, Copy Files, ..).
EG itself should provide an OOTB option to do this from the commandline, like
saseguide -project "path-to-project.egp" -run
IMHO
That's a nice idea. I think the difficulty (not insurmountable, of course!) would be that an EG project isn't necessarily one straight flow of code. There can be multiple process flows, so you'd need to have some way of specifying the one you want to run.
Of course, the commandline needs to reflect the capabilities of the software itself, so one would also need a -flow option (or the -run could optionally accept a flow name). And probably a -autoexec option which forces EG to execute the Autoexec flow even when it is not configured to do this per the settings.
But mind that in all my work I have never run a project in batch mode (even though EG was my main interface to SAS, and my main development tool). All automation was always done by running .sas files in SAS batch mode from a scheduler, on the SAS server.
The automation / scripting APIs allow for "batch" and scheduled running of projects, but as others have pointed out it's not a native command-line interface for SAS Enterprise Guide. Instead you build a simple script (could be VB Script or PowerShell) and run the script from the command line.
For info - we have built an open source server that provides a full REST API onto Base SAS. Just point it at your SAS executable, add your SAS programs, and you can execute them easily from any language.
The benefit of this approach is that the projects you build can be very easily migrated to Viya in the future.
https://github.com/sasjs/server
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.