![unity cloud build project version unity cloud build project version](https://support.unity.com/hc/en-us/article_attachments/201684976/step8.png)
Then you can just run it like this: $ unity-buildĬommand line arguments have priority over environment variables.
![unity cloud build project version unity cloud build project version](https://unitytech.github.io/clouddiagnostics/images/UnityCloudDiagnosticsEditor.png)
If you want these to stay between sesions you should store them on the config file according to your platform specifics. t, -target Set the build target, defaults to if missingĪ better option would be to store the parameters in environment variables: $ export CLOUD_BUILD_API_KEY= k, -key Set your api key to use as credentials to log into Cloud Build o, -org Set the organization id that contains the project to build p, -project Set the project id that should be built You can run the help command to see what every option does: $ unity-build -help You can pass these as command line parameters: $ unity-build -k -o -p -t Target Id: You can specify which target to trigger, if you don't provide any it defaults to _all.Īlso you need to provide your API key, you can find it in your profile in Cloud Build.Project Id: It's the unique identifier of the project, you can find it in the project's cloud build site.Organization Id: It's the name of the organization in Unity ID.You need to provide the details of the project you want to build: You can download this repository and link the script to your /bin path as well: $ git clone
Unity cloud build project version install#
Then you can use npm to install the command line tool: $ npm install unity-build -g This script was built using Node.js command line tools, so you need to have it installed. A simple command line tool that triggers builds in Unity Cloud Build using it's REST API located at