Unity Gaming Services CLI
Create and manage schedule configurations from the command line using the Unity Gaming Services command-line interface.
읽는 시간 1분최근 업데이트: 4달 전
Unity Gaming Services CLI를 사용하여 일정과 상호 작용할 수 있습니다. CLI를 사용하면 커맨드 라인에서 일정 구성을 관리할 수 있습니다.
필수 조건
CLI에 대한 보다 포괄적인 내용을 알아보려면 Unity Gaming Services CLI 시작하기 가이드에 나와 있는 단계를 따르십시오.
이 가이드를 따르려면 먼저 다음 작업을 완료해야 합니다.
-
다음을 사용하여 프로젝트 ID와 환경을 구성합니다.
ugs config set project-id <your-project-id>
ugs config set environment-name <your-environment-name>
CLI 사용
커맨드와 옵션이 모두 나와 있는 전체 레퍼런스가 필요한 경우, Schedules 커맨드 라인 기술 자료를 참고하십시오.
일정 배포
new-fileugs scheduler new-file <file-name>
구성 파일 콘텐츠의 예시는 다음과 같습니다.
{ "$schema": "https://ugs-config-schemas.unity3d.com/v1/schedules.schema.json", "Configs": { "Schedule1": { "EventName": "EventType1", "Type": "recurring", "Schedule": "0 * * * *", "PayloadVersion": 1, "Payload": "{}" }, "Schedule2": { "EventName": "EventType2", "Type": "one-time", "Schedule": "2024-03-08T13:06:32.311+00:00", "PayloadVersion": 1, "Payload": "{ \"message\": \"Hello, world!\"}" } }}
필요한 경우 일정 구성을 여러 파일로 분리할 수도 있습니다.
{ "$schema": "https://ugs-config-schemas.unity3d.com/v1/schedules.schema.json", "Configs": { "Schedule1": { "EventName": "EventType1", "Type": "recurring", "Schedule": "0 * * * *", "PayloadVersion": 1, "Payload": "{}" } }}
{ "$schema": "https://ugs-config-schemas.unity3d.com/v1/schedules.schema.json", "Configs": { "Schedule2": { "EventName": "EventType2", "Type": "one-time", "Schedule": "2024-03-08T13:06:32.311+00:00", "PayloadVersion": 1, "Payload": "{ \"message\": \"Hello, world!\"}" } }}
Deploy일정이 활성화될 수 있도록 구성 파일을 배포해야 합니다.
ugs deploy <path-to-schedules-file> <path-to-schedules-file>
ugs deploy <path-to-directory>
일정 검색
현재 활성화된 일정을 모두 나열하려면 다음 커맨드를 실행합니다.
ugs scheduler list
Fetch제공되는 경로는 일정이 저장되는 디렉토리입니다.
ugs fetch <path>
일정 삭제
--reconciledeployugs deploy --services scheduler <path-to-config-file> --reconcile