Documentation

​
​

Development

User Acquisition

Monetization

Industry

Remote Config

Unity SDK

Admin API

Client API

Remote Config

LiveOps
​
​
Remote Config
  • Overview
  • Get started
  • Concepts
  • Tutorials
    • Write configuration
      • Using Unity Editor
      • Using the Unity Dashboard
      • Using the CLI
      • Using the REST API
    • Code integration
    • Configuring your project
    • Configure stateful Audiences
    • Upgrade Guide
  • Reference
  • Privacy and consent
  1. Introduction to Remote Config
  2. Write configuration

Unity Gaming Services CLI

Use the UGS CLI to manage Remote Config files from the command line.
Read time 2 minutes
Last updated 9 months ago

You can use the Unity Gaming Services CLI to interact with Remote Config files. The CLI allows you to create, deploy, and manage Remote Config files from the command line.

Prerequisites

For a deep dive into the CLI, follow the steps in the Unity Gaming Services CLI Get Started guide.
To follow this guide, you must first complete the following actions:
  1. Install the UGS CLI.
  2. Configure your Project ID and Environment as such:
    ugs config set project-id <your-project-id>

    ugs config set environment-name <your-environment-name>
  3. Configure a Service Account with the required roles for Remote Config and environments management. Refer to Get Authenticated.

Using the CLI

Refer to the Remote Config Command Line documentation for a full reference of all commands and options.
Note
The
ugs remote-config
command is also available as
ugs rc
.

Deploy resources

Run the
new-file
command to create a resource locally:
ugs remote-config new-file <file-name>
You can use the
Deploy
command to promote your local resources to the remote environment and publish them at once. The local resources must be deployed to become available to the game client.
ugs deploy <path-to-file> <path-to-file>
ugs deploy <path-to-directory>

Retrieve resources

You can use the
Fetch
command to retrieve all the Remote Config keys from the remote into a single file. The provided path is a directory where the keys will be fetched to:
ugs fetch <path> --services remote-config

Environment synchronization

You can move all your modules from one environment and deploy them to another environment.
Run the following command to produce an archive of all the modules in your current environment:
ugs remote-config export <out-dir> <file-name> --environment-name <environment-to>
You can then import the modules and deploy them to another environment by running the following command:
ugs remote-config import <in-dir> <file-name> --environment-name <environment-to>

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
    • Prerequisites

    • Using the CLI

      • Deploy resources

      • Retrieve resources

      • Environment synchronization


Report a problem with this page