# AddDenoApp

- Module: [CommunityToolkit.Aspire.Hosting.Deno](/reference/api/go/communitytoolkit.aspire.hosting.deno.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: `DistributedApplicationBuilder`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Adds a Deno application to the application model. Deno should available on the PATH.

## Definition

```go
func (DistributedApplicationBuilder) AddDenoApp(
    name string,
    scriptPath string,
    options ...*AddDenoAppOptions,
) DenoAppResource
```

## Parameters

- `name` (`string`) -- The name of the resource.
- `scriptPath` (`string`) -- The path to the script that Deno will execute.
- `options` (`...*AddDenoAppOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*AddDenoAppOptions` argument.

- `WorkingDirectory` (`*string`) -- The working directory to use for the command. If null, the working directory of the current process is used.
- `PermissionFlags` (`[]string`) -- The permissions to grant to the program run.
- `Args` (`[]string`) -- The arguments to pass to the command.

## Returns

[`DenoAppResource`](/reference/api/go/communitytoolkit.aspire.hosting.deno/denoappresource.md) -- A reference to the `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Applies to

- `DistributedApplicationBuilder`
