Dynamics AX use of the startupcmd parameter

If you start ax32.exe with -startupcmd you can use this to automate some tasks.

Like for instance this command will perform a full compile of all elements in AX.
ax32.exe -startupcmd=CompileAll

Here is a full list of all the startupcmd parameters in AX2009 and AX2012.
The code that controls this can be found in Class SysStartupCmd method construct.
You can also add your own commands by adding them to this method.


Command AX2009
Command AX2012
Usage
setbuildno
setbuildno
Updates the version information text in the About Microsoft Dynamics AX dialog 
updatebuildno
updatebuildno
Synchronize the Build Number Between the Application and Database 
synchronize
synchronize
Synchronizes the data dictionary 
compileall
compileall
Compiles the application 
compilepartial
Compiles the application and updates Crossreference 
compilemodel
Compiles a specific model 
compilelayerinheritance
xrefall
Updates Crossreferences 
compileil
Compiles FULL CIL 
exit
exit
Shuts down the application 
aotimport
aotimport
Imports an XPO file into the AOT 
aldimport
Imports an Lable file into the AOT 
applupgrade
applupgrade
Starts Version upgrade processes 
loadlicense
loadlicense
Loads a license file into AX and shuts down 
checkbestpractices
checkbestpractices
Compiles the application and exports the Best Practice warnings to a file. If an XPO file is provided, only check the Best Practice warnings in the XPO. 
updatemetrics
autorun
autorun
Runs AX AutoRun tasks based on an XML file. 
runtestproject
runtestproject
Creates, runs and closes a test project 
batch
batch
Starts the application to run Client batch tasks in a specific group 
viewalert
viewalert
Opens a specific alert 
drilldown
drilldown
Opens the record that triggered an alert 
viewalertrule
viewalertrule
Opens the rule that triggered an alert 
importresources
importresources
Imports a resource into the AOT 
xmlreflection
xmlreflection
Creates an XML file based on reflection of the AOT 
xmldocumentation
xmldocumentation
Creates an XML documentation file 
startupelementaction
Starts the application to run element 
securityinference
generatessasproject
buildvisualstudioprojects
compileSync
Compiles the application and synchronizes the data dictionary 


Kommentarer

  1. Also note that it's defined inside AX application (by SysStartupCmd* classes), therefore it depends on the version of applicaction and it's possible to create custom ones as well.

    SvarSlet

Send en kommentar

Populære opslag fra denne blog

Axapta Manager (AxDynManagerV1.03)

Axapta Manager (AxDynManagerV1.02)