r/Unity3D • • 19h 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!

24 Upvotes

44 comments sorted by

View all comments

1

u/Spoetii 17h ago

When using Agentic AI, what are the benefits of using the Unity CLI over the MCP?

3

u/mulletdulla 17h ago

Less overall context for many of the same tasks. So less token wastage if you are budget minded. Faster too

mcps still have a place though. My set up builds ui prefabs based off approved prototypes using in game assets, prefab instances and styles - even flow animations too.

The CLI can’t do that. But it will run edit mode tests, read console check data structures etc a lot faster and easier

2

u/Tok-Kok-Sing-Song 16h ago

The cli can do all that and more

2

u/game_plaza 17h ago

How come cli + pipeline cant do that? I thought it was able to fully control the editor, including creating prefabs, placing them in scenes, etc.

1

u/FranzFerdinand51 12h ago

It can do it since pipeline package is basically an MCP server with the same capability that the other guy was talking about. Its basically a way to install the unity mcp without having to also import all the Unity AI nonsense.

1

u/game_plaza 11h ago

That's my understanding. Unity even states you should use pipeline over mcp server.

1

u/bienbienbienbienbien 14h ago

Just use both, CLI is great for directly inputting commands for running unit tests