# atmos vendor set

Set the version pinned for a component in your `vendor.yaml` manifest. The source is
matched by component name (not by index), and the edit preserves comments, anchors,
and Go templates such as `{{.Version}}` in source URLs.

:::info
`atmos vendor set` is an alias for [`atmos vendor config set`](/cli/commands/vendor/config/set): it resolves `<component>` to its `spec.sources[N].version` path and delegates to the canonical form.
:::

## Usage

```shell
atmos vendor set <component> <version> [--file <manifest>]
```

## Examples

```shell
atmos vendor set vpc v1.5.0
atmos vendor set eks 1.3.0 --file ./vendor.yaml
```

## Arguments

- **`<component>` (required)**
  The component name as it appears in 
  `spec.sources[].component`
  .
- **`<version>` (required)**
  The new version to pin.

## Flags

- **`--file` (string, default `./vendor.yaml`)**
  The vendor manifest file to edit.

:::note
If no source matches the given component name, the command fails rather than silently
making no change.
:::
