기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Economy

Economy

LiveOps
​
​
Economy
  • Overview
  • Get started
  • Concepts
  • Tutorials
    • Write configuration
      • Using Unity Editor
      • Using the Unity Dashboard
      • Using the CLI
      • Using the REST API
    • Add a currency to your game
    • Add an inventory item to your game
    • Add a virtual purchase to your game
    • Add a real money purchase to your game
    • Publication
    • Player data
    • Economy Game Overrides
    • Economy Game Overrides with Cloud Code
    • Config Caching
  • Reference
  • Privacy and consent
  1. Economy
  2. Write configuration

Unity Gaming Services CLI

Use the Unity Gaming Services command-line tool to create, deploy, and manage Economy resources.
읽는 시간 2분
최근 업데이트: 8달 전

You can use the Unity Gaming Services CLI to interact with Economy resources. The CLI allows you to create, deploy, and manage Economy resources 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 Economy and environments management. Refer to Get Authenticated.

Using the CLI

Refer to the Economy Command Line documentation for a full reference of all commands and options.
참고
The
ugs economy
command is also available as
ugs ec
.

Deploy resources

Run the
new-file
command to create a resource locally:
ugs economy 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-economy-file> <path-to-economy-file>
ugs deploy <path-to-directory>

Retrieve resources

To retrieve information about the deployed resource, run the following command:
ugs economy get-resources
You can use the
Fetch
command to retrieve multiple Economy resources from the remote at once. The provided path is a directory where the resources will be fetched to:
ugs fetch <path> --services economy

Environment synchronization

You can move all your resources from one environment and deploy them to another environment.
Run the following command to produce an archive of all the resources in your current environment:
ugs fetch <out-dir> --services economy --environment-name <environment-from>
You can then deploy the resources to another environment by running the following command:
ugs deploy <in-dir> --services economy --environment-name <environment-to>
The resources are published as part of the deploy command.

Delete resource

To delete an existing resource, run the following command:
ugs economy delete <resource-id>

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Prerequisites

    • Using the CLI

      • Deploy resources

      • Retrieve resources

      • Environment synchronization

      • Delete resource


이 페이지의 문제 보고