Table of Contents

initdb

Return to PostgreSQL or PostgreSQL CLI commands

initdb --help

initdb initializes a PostgreSQL database cluster.

Usage

initdb [OPTION]… [DATADIR]

Options

Less commonly used options

Other options

If the data directory is not specified, the environment variable PGDATA is used.

Report bugs to pgsql-bugs@lists.postgresql.org.