Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Gaming Services CLI

v1.7

Legacy
​

GitHub Repository

Unity Gaming Services CLI

v1.7

Legacy
​

​
​
Unity Gaming Services CLI
  • Overview
Get started
  • Install the CLI
  • Set up a Common Configuration
  • Get Authenticated
  • Use Your First Command
Base commands
  • Configuration
  • Deploy
  • Environment
  • Fetch
  • Login
  • Logout
  • Status
Deployment definition
  • What is a Deployment Definition
  • Commands for Deployment Definition
  • Excludes
  • Troubleshooting Deployment Definition
Samples
  • CI/CD Pipeline Usage
  • Deploy Samples
  • File Type Associations
  • Redirecting Command Result to File
Troubleshooting
  • Project Roles
  • Unauthorized (Error 403)
CLI Services Documentation
  • Access
  • Cloud Code
  • Cloud Content Delivery
  • Cloud Save
  • Economy
  • Game Server Hosting
  • Leaderboards
  • Lobby
  • Matchmaker
  • Player
  • Remote Config
  • Scheduler
  • Triggers
  1. Overview

Excludes

Restrict the scope of a Deployment Definition by excluding specific files or directories.
Read time 1 minute
Last updated 3 months ago

Definition

Excludes are a way to restrict the scope of a Deployment Definition. Excludes only affect files or directories that it is responsible for. Excludes use glob pattern matching to match the contents of the
excludePaths
field and the files the Deployment Definition is responsible for.

Examples

Given the following file structure, there are multiple ways to exclude the contents of the
/Tests/
folder.
Assets/├── DeployableAssets/│ ├── CloudCode/│ │ ├── CloudCode.ddef│ │ ├── scriptA.js│ │ ├── scriptB.js│ │ └── Tests/│ │ ├── scriptA_test.js│ │ └── scriptB_test.js│ └── Remote Config/│ ├── RemoteConfig.ddef│ ├── configA.rc│ └── configB.rc

Glob Directory

A relative path can hide the whole
/Tests/
directory.
{ "name": "CloudeCode", "excludePaths": [ "**/Tests/**" ]}

File Path

The full path to the files.
{ "name": "CloudeCode", "excludePaths": [ "Assets/DeployableAssets/CloudCode/Tests/scriptA_test.js", "Assets/DeployableAssets/CloudCode/Tests/scriptB_test.js", ]}

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Definition

    • Examples

      • Glob Directory

      • File Path