文档

​
​

Development

User Acquisition

Monetization

工业

Remote Config

Remote Config

LiveOps
​
​
Remote Config
  • 概述
  • 开始使用
概念
  • Unity 中的 Remote Config
教程
  • 配置有状态受众
参考
  • Unity SDK
  • Admin REST API
  • 客户端 REST API
  • Remote Config SDK API 参考
  • Google Play 数据安全部分
  • Apple 隐私调查
  1. Remote Config 简介
  2. Write configuration

Unity Gaming Services CLI

Use the UGS CLI to manage Remote Config files from the command line.
阅读时间2 分钟
最后更新于 9 个月前

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.
注意
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
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Prerequisites

    • Using the CLI

      • Deploy resources

      • Retrieve resources

      • Environment synchronization


报告此页面的问题