# JavaScriptInstallCommandAnnotation

- Kind: `class`
- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.JavaScript`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/JavaScriptInstallCommandAnnotation.cs)
- Implements: `IResourceAnnotation`

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

## Definition

```csharp
namespace Aspire.Hosting.JavaScript;

public sealed class JavaScriptInstallCommandAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Constructors

- [JavaScriptInstallCommandAnnotation(string[])](/reference/api/csharp/aspire.hosting.javascript/javascriptinstallcommandannotation/constructors.md#constructor-string) -- Represents the annotation for the JavaScript package manager's install command.

## Properties

- [Args](/reference/api/csharp/aspire.hosting.javascript/javascriptinstallcommandannotation/properties.md#args) : `string[]` `get` -- Gets the command-line arguments supplied to the JavaScript package manager.
- [ProductionInstallArgs](/reference/api/csharp/aspire.hosting.javascript/javascriptinstallcommandannotation/properties.md#productioninstallargs) : `string?` `get; init` -- 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`).
