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

# pgxman install

Install PostgreSQL extensions

### Synopsis

Install PostgreSQL extensions from commandline arguments. The argument
format is NAME=VERSION. The PostgreSQL version is detected from pg\_config
if it exists, or can be specified with the --pg flag.

```
pgxman install [flags]
```

### Examples

```
  # Install the latest pgvector for the installed PostgreSQL.
  # PostgreSQL version is detected from pg_config if it exists,
  # Otherwise, the latest supported PostgreSQL version is used.
  pgxman install pgvector

  # Install the latest pgvector for PostgreSQL 15
  pgxman install pgvector --pg 15

  # Install pgvector 0.5.0 for PostgreSQL 15
  pgxman install pgvector=0.5.0 --pg 15

  # Install pgvector 0.5.0 for PostgreSQL 15 with sudo
  pgxman install pgvector=0.5.0 --pg 15 --sudo

  # Install pgvector 0.5.0 and postgis 3.3.3 for PostgreSQL 15
  pgxman install pgvector=0.5.0 postgis=3.3.3 --pg 15

  # Install from a local Debian package
  pgxman install /PATH_TO/postgresql-15-pgxman-pgvector_0.5.0_arm64.deb
```

### Options

```
  -h, --help        help for install
      --overwrite   Overwrite the existing extension if it is installed outside of pgxman.
      --pg string   Install the extension for the PostgreSQL version. It detects the version by pg_config if it exists. Supported values are 13, 14, 15, 16.
  -y, --yes         Automatic yes to prompts and run install non-interactively.
```

### Options inherited from parent commands

```
      --debug             enable debug logging
      --registry string   registry URL (default "https://registry.pgxman.com/v1")
```

### SEE ALSO

* [pgxman](/cli/pgxman)	 - PostgreSQL Extension Manager
