---
title: "Install Sun and Moon data source plugin for Grafana"
description: "Calculates position of Sun and Moon. Sun and Moon data source plugin for Grafana by fetzerch. Available in Grafana Cloud and self-managed Grafana."
---

> This is the Markdown version of https://grafana.com/grafana/plugins/fetzerch-sunandmoon-datasource/installation/

# Sun and Moon - Installation

## Installing Sun and Moon on Grafana Cloud

Install plugins directly in your Grafana Cloud instance, and we'll take care of keeping them up to date.

Note that it could take up to 1 minute to see the plugin show up in your Grafana.

Or automate it with the [Cloud API](https://grafana.com/docs/grafana/latest/developer-resources/api-reference/cloud-api/#grafana-plugins) or [Terraform](https://grafana.com/docs/grafana/latest/as-code/infrastructure-as-code/terraform/terraform-plugins/).

[Sign up for Grafana Cloud to install Sun and Moon.](https://grafana.com/auth/sign-up/create-user?pg=plugins&plcmt=fetzerch-sunandmoon-datasource)

For more information, visit the docs on [plugin installation](https://grafana.com/docs/grafana/latest/plugins/installation/).

## Installing on a local Grafana

For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.

### Install via CLI

Use the grafana-cli tool to install Sun and Moon from the commandline:

```sh
grafana-cli plugins install fetzerch-sunandmoon-datasource
```

To install a specific version, add it to the command:

```sh
grafana-cli plugins install fetzerch-sunandmoon-datasource <version>
```

The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. [More information on the cli tool](https://grafana.com/docs/grafana/latest/cli/).

### Download package

Alternatively, manually download the .zip file and unpack it into your grafana plugins directory.

- [any](https://grafana.com/api/plugins/fetzerch-sunandmoon-datasource/versions/0.3.3/download)
