---
title: Install webhook on Linux | Snap Store
description: Get the latest version of webhook for Linux - webhook is a lightweight
  incoming webhook server to run shell commands
url: https://snapcraft.io/webhook
---

# webhook

[Adnan Hajdarevic (adnan.h)](https://snapcraft.io/publisher/adnan.h "View all snaps from Adnan Hajdarevic (adnan.h)")

* [Adnan Hajdarevic (adnan.h)](https://snapcraft.io/publisher/adnan.h "View all snaps from Adnan Hajdarevic (adnan.h)")

latest/stable 2.8.1

Install latest/stable of webhook

This channel hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

**Install using the command line**

```
sudo snap install webhook
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* webhook

---

### License

* MIT

---

### Last updated

* 22 May 2023 - latest/stable
* 22 May 2023 - latest/edge

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

### Websites

* [github.com/adnanh/webhook](https://github.com/adnanh/webhook "https://github.com/adnanh/webhook")

---

### Contact

* [adnanh+webhook@gmail.com](mailto:adnanh+webhook@gmail.com "mailto:adnanh+webhook@gmail.com")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/webhook#report-snap-modal)

---

* [Description](https://snapcraft.io/webhook#tab-description)
* [Security](https://snapcraft.io/webhook#tab-security)

#### webhook is a lightweight incoming webhook server to run shell commands

webhook is a lightweight configurable tool written in Go, that allows you to easily create HTTP endpoints (hooks) on your server, which you can use to execute configured commands. You can also pass data from the HTTP request (such as headers, payload or query variables) to your commands. webhook also allows you to specify rules which have to be satisfied in order for the hook to be triggered.

For example, if you're using Github or Bitbucket, you can use webhook to set up a hook that runs a redeploy script for your project on your staging server, whenever you push changes to the master branch of your project.

If you use Mattermost or Slack, you can set up an "Outgoing webhook integration" or "Slash command" to run various commands on your server, which can then report back directly to you or your channels using the "Incoming webhook integrations", or the appropriate response body.

webhook aims to do nothing more than it should do, and that is:

* receive the request,
* parse the headers, payload and query variables,
* check if the specified rules for the hook are satisfied,
* and finally, pass the specified arguments to the specified command via command line arguments or via environment variables.

Everything else is the responsibility of the command's author.

For documentation and help visit the [official GitHub project page](<https://github.com/adnanh/webhook>).

---

## Install webhook on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/webhook/arch)

[### CentOS](https://snapcraft.io/install/webhook/centos)

[### Debian](https://snapcraft.io/install/webhook/debian)

[### elementary OS](https://snapcraft.io/install/webhook/elementary)

[### Fedora](https://snapcraft.io/install/webhook/fedora)

[### KDE Neon](https://snapcraft.io/install/webhook/kde-neon)

[### Kubuntu](https://snapcraft.io/install/webhook/kubuntu)

[### Manjaro](https://snapcraft.io/install/webhook/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/webhook/pop)

[### openSUSE](https://snapcraft.io/install/webhook/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/webhook/rhel)

[### Ubuntu](https://snapcraft.io/install/webhook/ubuntu)
