Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Gaming Services CLI

v1.8

Legacy
​

GitHub Repository

Unity Gaming Services CLI

v1.8

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
    • Unity Build Automation
    • Docker
    • GitHub Actions
    • Jenkins
    • Installing the CLI from CI
  • 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

Docker

Learn how to integrate the CLI with Docker.
Read time 1 minute
Last updated 3 months ago

First, Download Docker, then run Docker Desktop and wait for Docker to finish initializing.
Then, create a new directory with a new file
dockerfile
.
Run
docker build --no-cache <path-to-new-directory> -f <path-to-new-dockerfile>
CLI
dockerfile
example:
# Docker imageFROM ubuntu:latest# Setting environment variablesENV UGS_CLI_PROJECT_ID=your-project-idENV UGS_CLI_SERVICE_KEY_ID=your-service-key-idENV UGS_CLI_SERVICE_SECRET_KEY=your-service-secret-key# Update and get dependency packagesRUN apt-get updateRUN apt-get install sudoRUN apt-get install gnupg -yRUN apt-get update; apt-get install curl -yRUN sudo apt-get install -y libicu-dev -y# Download and install UGS CLI from GitHub CLI here# Run test commands on the CLIRUN ugs --versionRUN ugs config get project-idRUN ugs statusRUN ugs env listRUN ugs deploy <directory-with-service-configurations> -j

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.