fly pg attach
Attach a postgres cluster to an app
Options
Name | Description |
---|---|
--app, -a <app> | App name to operate on |
--config, -c <config> | Path to an app config file or directory containing one |
--database-name <database-name> | Database to use, defaults to a new database with the same name as the app |
--database-user <database-user> | The database user to create, defaults to creating a user with the same name as the consuming app |
--postgres-app <postgres-app> | The postgres cluster to attach to the app |
--variable-name <variable-name> | The env variable name that will be added to the app. Defaults to DATABASE_URL |