# New-File

> Creates a new Trigger config file locally containing example Triggers.

Creates a new Trigger config file locally containing example Triggers.

Set `ActionScopeType` on a trigger (for example `Player` or `MultiplayerSession`) to forward the event scope to the action.
Omit it to drop the event scope.

```json
{
  "Name": "Trigger 2",
  "EventType": "EventType2",
  "ActionType": "cloud-code",
  "ActionUrn": "urn:ugs:cloud-code:MyModule/MyFunction",
  "ActionScopeType": "Player"
}
```

## Command

Authentication Required: `No`

```text
ugs triggers new-file <file-name> [options]
```

## Arguments

`<file-name>` The name of the file to create

## 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.      |
