---
title: Install claptrap on Linux | Snap Store
description: Get the latest version of claptrap for Linux - Bring the power of Clap
  to shell scripts
url: https://snapcraft.io/claptrap
---

# claptrap

[Fuji Apple (fujiapple)](https://snapcraft.io/publisher/fujiapple "View all snaps from Fuji Apple (fujiapple)")

* [Fuji Apple (fujiapple)](https://snapcraft.io/publisher/fujiapple "View all snaps from Fuji Apple (fujiapple)")

latest/stable 0.3.0

Install latest/stable of claptrap

---

**Install using the command line**

```
sudo snap install claptrap
```

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

---

### Package name

* claptrap

---

### License

* Apache-2.0

---

### Last updated

* 17 August 2025 - latest/stable
* 29 December 2025 - latest/edge

---

### Websites

* [claptrap.sh](https://claptrap.sh "https://claptrap.sh")

---

### Contact

* [fujiapple852@gmail.com](mailto:fujiapple852@gmail.com "mailto:fujiapple852@gmail.com")

---

### Source code

* [github.com/fujiapple852/claptrap](https://github.com/fujiapple852/claptrap "https://github.com/fujiapple852/claptrap")

---

### Report a bug

* [github.com/fujiapple852/claptrap/issues](https://github.com/fujiapple852/claptrap/issues "https://github.com/fujiapple852/claptrap/issues")

---

##### Report a Snap Store violation

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

---

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

#### Bring the power of Clap to shell scripts

Claptrap is a tool that allows you to parse complex command line arguments in shell scripts using a declarative
specification.

Features:

Claptrap brings the full power of Clap command line parsing to shell scripts. Command line interface specifications can
be declared in `toml`, `yaml` or `json` and used as standalone files or embedded directly in scripts.

Claptrap Supports `bash`, `zsh`, `fish` and `PowerShell` scripts and can run on Linux, BSD, macOS, and Windows. Claptrap
can also automatically generate shell completions, man pages, markdown documentation and template scripts.

See the [documentation](<https://claptrap.sh>) for more details.

Example:

```
#!/usr/bin/env bash

set -euo pipefail

eval "$(claptrap --spec - -- "$@" <<'SPEC'
name = "hello"
[args]
name = { short = 'n', long = "name", default-value = "world" }
SPEC
)"

echo "hello, ${claptrap_name}!"
```

---

## Install claptrap 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/claptrap/arch)

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

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

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

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

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

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

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

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

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

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

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

[### Raspberry Pi](https://snapcraft.io/install/claptrap/raspbian)
