Unity CLI Manager brings Unity project management to your terminal. Create, build, and organize projects with simple commands built for developers who value speed and efficiency.
- Project Management - Create, open, list, and delete Unity projects
- Multi-Platform Builds - Build for Linux, Windows, and macOS
- Project Templates - Support for both 2D and 3D templates
- Color-Coded Output - Clear visual feedback
- Safety Features - Confirmation prompts for destructive operations
- Unity Editor installed on your system
- Bash shell (Linux, macOS, or Windows via WSL)
Step 1: Download
git clone https://github.com/yourusername/unity-cli-manager.git
cd unity-cli-managerStep 2: Make Executable
chmod +x unity-cli.shStep 3: Configure Paths
Edit unity-cli.sh and set your paths:
UNITY_PATH="$HOME/Flow/Unity/Editor/Unity" # Path to Unity Editor
PROJECTS_DIR="$HOME/MyProjects" # Projects directoryStep 4: Create Alias
Add to your ~/.bashrc or ~/.zshrc:
alias unity='/absolute/path/to/unity-cli.sh'Then reload:
source ~/.bashrc # or source ~/.zshrcStep 5: Verify
unity versionunity new <ProjectName> <2d|3d>Creates a new Unity project. Project names must not contain spaces.
Examples:
unity new SpaceShooter 3d
unity new PlatformerGame 2dunity open <ProjectName>Launches Unity Editor with the specified project.
unity build <ProjectName> [platform]Builds your project for the target platform. Defaults to Linux if no platform specified.
Platforms: linux64 windows mac
Examples:
unity build SpaceShooter
unity build SpaceShooter windows
unity build PlatformerGame macBuild Output:
ProjectName/
Builds/
Linux/
ProjectName.x86_64
Windows/
ProjectName.exe
Mac/
ProjectName.app
unity listAlias: unity ls
Displays all Unity projects in your directory.
unity info <ProjectName>Shows detailed information about a project including Unity version and size.
unity delete <ProjectName>Alias: unity rm
Permanently removes a project directory.
Warning
Deletion is permanent and irreversible.
unity version # Show version and configuration
unity help # Show all commands# Create and open a new game
unity new MyGame 3d
unity open MyGame
# Build for multiple platforms
unity build MyGame linux64
unity build MyGame windows
unity build MyGame mac
# Manage projects
unity list
unity info MyGame
unity delete OldProjectThis project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Contributions are welcome. Fork the repository and submit pull requests for improvements.
Built for developers who live in the terminal
Made with focus by saeeedhany
