Commands for Deployment Definition
Use the deploy and fetch commands with a Deployment Definition.
Read time 1 minuteLast updated 3 months ago
Supported Commands
Deploy
Using the command on a Deployment Definition will deploy all files it contains.
All files that are excluded will be ignored. The exclusion of these files will be logged.
deploySample Output
Here is a sample output for the following Deployment Definition and file structure.
The command used is .
ugs deploy Assets/DeployableAssets/CloudCode.ddef{ "name": "CloudeCode", "excludePaths": [ "**/Tests/**" ]}
Assets/├── DeployableAssets/│ ├── CloudCode/│ │ ├── CloudCode.ddef│ │ ├── scriptA.js│ │ ├── scriptB.js│ │ └── Tests/│ │ ├── scriptA_test.js│ │ └── scriptB_test.js│ └── Remote Config/│ ├── RemoteConfig.ddef│ ├── configA.rc│ └── configB.rc
Here is the result
Successfully deployed the following files: 'Assets/DeployableAssets/CloudCode/scriptA.js' 'Assets/DeployableAssets/CloudCode/scriptB.js'Created: 'Assets/DeployableAssets/CloudCode/scriptA.js' 'Assets/DeployableAssets/CloudCode/scriptB.js'[Information]: The following files were excluded by deployment definitions: 'Assets/DeployableAssets/CloudCode/Tests/scriptA_test.js' [CloudCode.ddef] 'Assets/DeployableAssets/CloudCode/Tests/scriptB_test.js' [CloudCode.ddef]
Fetch
Using the command on a Deployment Definition will fetch all files it contains.
All files that are excluded will be ignored. The exclusion of these files will be logged.
fetchReconcile
Given that Deployment Definition files are local groupings for files and do no exist on the server, the will not work for a Deployment Definition.
--reconcile optionSample Output
Here is a sample output for the following Deployment Definition and file structure.
The command used is .
ugs deploy Assets/DeployableAssets/CloudCode.ddef{ "name": "CloudeCode", "excludePaths": [ "**/Tests/**" ]}
Assets/├── DeployableAssets/│ ├── CloudCode/│ │ ├── CloudCode.ddef│ │ ├── scriptA.js│ │ ├── scriptB.js│ │ └── Tests/│ │ ├── scriptA_test.js│ │ └── scriptB_test.js│ └── Remote Config/│ ├── RemoteConfig.ddef│ ├── configA.rc│ └── configB.rc
Here is the result
Successfully fetched the following files: 'DeployableAssets/CloudCode/scriptA.js' 'DeployableAssets/CloudCode/scriptB.js'Updated: 'Assets/DeployableAssets/CloudCode/scriptA.js' 'Assets/DeployableAssets/CloudCode/scriptB.js'[Information]: The following files were excluded by deployment definitions: 'Assets/DeployableAssets/CloudCode/Tests/scriptA_test.js' [CloudCode.ddef] 'Assets/DeployableAssets/CloudCode/Tests/scriptB_test.js' [CloudCode.ddef]