Outside of your directory, run the `helm repo index [DIR] [URL]` command. This command takes the path of the local directory that you just created and the URL of your remote chart repository and composes an index.yaml file inside the given directory path.
Outside of your directory, run the `helm repo index [DIR] [URL]` command. This command takes the path of the local directory that you just created and the URL of your remote chart repository and composes an index.yaml file inside the given directory path.
```console
```console
$ helm repo index fantastic-charts https://storage.googleapis.com/fantastic-charts
$ helm repo index fantastic-charts --url https://storage.googleapis.com/fantastic-charts
```
```
Now, you can upload the chart and the index file to your chart repository using a sync tool or manually. If you're using Google Cloud Storage, check out this [example workflow](chart_repository_sync_example.md) using the gsutil client.
Now, you can upload the chart and the index file to your chart repository using a sync tool or manually. If you're using Google Cloud Storage, check out this [example workflow](chart_repository_sync_example.md) using the gsutil client.
Use helm to generate an updated index.yaml file by passing in the directory path and the url of the remote repository to the `helm repo index` command like this:
Use helm to generate an updated index.yaml file by passing in the directory path and the url of the remote repository to the `helm repo index` command like this:
```console
```console
$ helm repo index fantastic-charts/ https://storage.googleapis.com/fantastic-charts
$ helm repo index fantastic-charts/ --url https://storage.googleapis.com/fantastic-charts
```
```
This will generate an updated index.yaml file and place in the `fantastic-charts/` directory.
This will generate an updated index.yaml file and place in the `fantastic-charts/` directory.