New-File
Creates a new Schedule config file locally containing example Schedules.
読み終わるまでの所要時間 2 分最終更新 5日前
Creates a new Schedule config file locally containing example Schedules.
The generated file contains examples of each supported schedule type:
.schedType | Schedule format |
|---|---|
| recurring | A five-field cron expression. The minimum frequency is once per hour. |
| one-time | An RFC3339 timestamp. |
| interval | A fixed period such as |
An interval has the format , where the supported units are (minutes), (hours), (days), and (weeks). Combined units such as are not supported. Intervals are fixed periods and do not reset at month boundaries.
<number><unit>mhdw1d12hWhen an interval schedule specifies , its cadence is anchored to that timestamp. Otherwise, its cadence is aligned to the Unix epoch and its first occurrence is the next aligned boundary, which might be sooner than one full interval after creation.
StartAtStartAtEndAtStartAtnullScheduleStartAtEndAtFor example:
{ "$schema": "https://ugs-config-schemas.unity3d.com/v1/schedules.schema.json", "Configs": { "RecurringSchedule": { "EventName": "EventType1", "Type": "recurring", "Schedule": "0 * * * *", "PayloadVersion": 1, "Payload": "{}", "StartAt": "2099-01-01T00:00:00Z", "EndAt": "2099-12-31T23:59:59Z" }, "OneTimeSchedule": { "EventName": "EventType2", "Type": "one-time", "Schedule": "2099-01-01T00:00:00Z", "PayloadVersion": 1, "Payload": "{ \"message\": \"Hello, world!\" }", "StartAt": null, "EndAt": null }, "IntervalSchedule": { "EventName": "EventType3", "Type": "interval", "Schedule": "3d", "PayloadVersion": 1, "Payload": "{}", "StartAt": "2099-01-01T00:00:00Z", "EndAt": null } }}
Command
Authentication Required:
Nougs scheduler new-file <file-name> [options]
Arguments
<file-name>Options
Alias | Description | |
|---|---|---|
| force | -f, --force | Overwrites existing file |
| help | -?, -h, --help | Display help and usage information. |
| quiet | -q, --quiet | Reduce logging to a minimum. |
| json | -j, --json | Use JSON as the output format. |