> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AppSignal CLI: Install

> Kommandozeilen-Tool zur Installation von AppSignal in einer PHP-Anwendung. Dokumentation zur Verwendung, zu Optionen und Konfigurationsmethoden.

export const VersionRequirements = ({versions = []}) => {
  if (!Array.isArray(versions) || versions.length === 0) {
    return null;
  }
  const boundaries = {
    upper: " or lower",
    exact: "",
    lower: " or higher"
  };
  const containerStyle = {
    marginTop: "0.5rem",
    marginBottom: "1.5rem"
  };
  const lineStyle = {
    display: "block",
    margin: "0 0 0.35rem 0",
    fontSize: "0.875rem",
    lineHeight: "1.4"
  };
  const pillBaseStyle = {
    display: "inline-block",
    padding: "0.1em 0.4em",
    borderRadius: "0.25rem",
    border: "1px solid",
    fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
    fontSize: "0.85em",
    fontWeight: 500
  };
  const pillColors = {
    "AppSignal for Elixir": {
      background: "#f3e8ff",
      borderColor: "#e9d5ff",
      color: "#9333ea"
    },
    "AppSignal for Front-end": {
      background: "#fef9c3",
      borderColor: "#fde68a",
      color: "#ca8a04"
    },
    "AppSignal for Go": {
      background: "#ccfbf1",
      borderColor: "#99f6e4",
      color: "#0d9488"
    },
    "AppSignal for JavaScript": {
      background: "#fef9c3",
      borderColor: "#fde68a",
      color: "#ca8a04"
    },
    "AppSignal for Node.js": {
      background: "#dcfce7",
      borderColor: "#bbf7d0",
      color: "#16a34a"
    },
    "AppSignal for Python": {
      background: "#dbeafe",
      borderColor: "#bfdbfe",
      color: "#2563eb"
    },
    "AppSignal for Ruby": {
      background: "#fee2e2",
      borderColor: "#fecaca",
      color: "#dc2626"
    },
    "AppSignal for Rust": {
      background: "#ffedd5",
      borderColor: "#fed7aa",
      color: "#ea580c"
    }
  };
  const defaultPillColor = {
    background: "#f4f4f5",
    borderColor: "#e4e4e7",
    color: "#52525b"
  };
  const getPillStyle = name => ({
    ...pillBaseStyle,
    ...pillColors[name] || defaultPillColor
  });
  const getBoundText = bound => {
    return boundaries[bound] || boundaries.lower;
  };
  return <div style={containerStyle}>
      {versions.map((v, i) => <p key={`${v.name}-${v.version}-${v.bound || "lower"}-${i}`} style={lineStyle}>
          This feature requires{" "}
          <code style={getPillStyle(v.name)}>{v.name}</code> version {v.version}
          {getBoundText(v.bound)}.
        </p>)}
    </div>;
};

<VersionRequirements
  versions={[
{ name: "AppSignal for PHP", version: "0.5.0" }
]}
/>

Der Install-Befehl richtet AppSignal in Ihrer PHP-Anwendung ein. Der Befehl durchläuft sechs Schritte:

1. Erkennt das Framework Ihrer Anwendung (Laravel, Symfony oder einfaches PHP),
2. Installiert Pakete für die automatische Instrumentierung,
3. Erstellt eine Konfigurationsdatei unter `config/appsignal.php`, falls sie noch nicht existiert,
4. Sammelt die erforderlichen Konfigurationswerte interaktiv und füllt dabei alle in Ihrer Umgebung gefundenen Werte vor,
5. Sendet Beispieldaten (Trace, Exception und Log) an AppSignal, um die Konfiguration zu überprüfen,
6. Aktualisiert die `.env`-Datei mit fehlenden Konfigurationswerten.

## Verwendung

Führen Sie den folgenden Terminal-Befehl im Stammverzeichnis Ihres Projekts aus:

```bash Shell theme={null}
vendor/bin/appsignal install
```

## Befehlsoptionen

Mit den Optionen des `install`-Befehls können Sie erforderliche Konfigurationswerte übergeben oder die Demo überspringen.

| Option                 | Beschreibung                                                            |
| ---------------------- | ----------------------------------------------------------------------- |
| `--push-api-key`       | AppSignal Push-API-Key                                                  |
| `--collector-endpoint` | AppSignal-Collector-Endpoint-URL                                        |
| `--app-name`           | Name Ihrer Anwendung                                                    |
| `--app-environment`    | Umgebung Ihrer Anwendung (z. B. `production`, `development`)            |
| `--skip-demo`          | Überspringt das Senden von Demo-Daten (überspringt auch `.env`-Updates) |

Sofern die Option `--skip-demo` nicht übergeben wird, führt der `install`-Befehl automatisch [den `demo`-Befehl](/php/command-line/demo) aus.

Wenn alle Konfigurationswerte über Befehlsoptionen übergeben werden, werden die interaktiven Abfragen vollständig übersprungen.

Weitere Informationen zu den Konfigurationsoptionen finden Sie in der [Konfigurationsdokumentation für AppSignal für PHP](/php/configuration/options).
