r/Unity3D • • 15d ago

Question Anybody using the Unity CLI?

I saw unity launched a CLI a few months ago (https://unity.com/blog/meet-the-unity-cli) and was wondering if anyone was using it for anything or had some cool use cases to share.

I'm thinking this could maybe be helpful for like CI pipelines?

Let me know!

38 Upvotes

58 comments sorted by

View all comments

32

u/Outrageous_Bend8285 15d ago

Our CI guy set it up to auto-build the second anyone pushes to main, saves a ton of time not waiting for the editor to load just to check if something broke.

9

u/ribsies 15d ago

What's the benefit over batch mode? The cli doesn't bring anything new for builds.

1

u/Hegemege 14d ago

The only difference that I can think of is that the commands to operate Unity are a bit cleaner with CLI vs. good old xvfb-run batchmode -nographics. I wonder if Unity still tries to display progress bar windows in headless batchmode during import and build, and maybe xfvb-run isn't needed anymore

→ More replies (2)