can i invoke UnityEditor functions or scripts with cmdline?

i want to import assets and bulid the asset bundles with UnityEditor scripts, is that possible to invoke these editor scripts in commadline only? thx~

The Unity editor does have a batchmode, syntax is as follows:

/Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode -projectPath "pathToYourProject" -executeMethod "ClassName.StaticMethodName" -quit

Works fine for me, I’m using this for an automated build process. Of course, this is assuming you have Unity in the default path. One thing to note: The whole editor does open with its Window but after work is done, it closes.

thx, but i can not find any further info(neither on google or wiki) about the command line functions of unity. Is there any doc or web page talk about the details?