# JavaScriptInstallCommandAnnotation Properties

- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Type: [JavaScriptInstallCommandAnnotation](/reference/api/csharp/aspire.hosting.javascript/javascriptinstallcommandannotation.md)
- Kind: `Properties`
- Members: `2`

Represents the annotation for the JavaScript package manager's install command.

## Args

- Name: `Args`
- Modifiers: `get`
- Returns: `string[]`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/JavaScriptInstallCommandAnnotation.cs#L20)

Gets the command-line arguments supplied to the JavaScript package manager.

```csharp
public string[] Args { get; }
```

## ProductionInstallArgs

- Name: `ProductionInstallArgs`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/JavaScriptInstallCommandAnnotation.cs)

Gets or sets the additional arguments for installing production-only dependencies (excluding devDependencies). This flag is appended to the base install command (from [JavaScriptInstallCommandAnnotation.Args](/reference/api/csharp/aspire.hosting.javascript/javascriptinstallcommandannotation/properties.md#args)) when generating the production dependencies stage in the Dockerfile. Each package manager sets its own flag (e.g. npm uses `--omit=dev`, yarn uses `--production`, pnpm uses `--prod`).

```csharp
public string? ProductionInstallArgs { get; init; }
```
