@@ -20,15 +20,15 @@ disco postgres:instances:add
2020# ... shows deployment output
2121disco postgres:instances:list
2222# ...shows the instance name, e.g.: nuclear-rabbit
23- disco postgres:database :add --instance nuclear-rabbit
23+ disco postgres:databases :add --instance nuclear-rabbit
2424# ... shows the database name, e.g.: ms6y0semmct194hs
25- disco postgres:database :attach \
25+ disco postgres:databases :attach \
2626 --instance nuclear-rabbit \
2727 --database ms6y0semmct194hs \
2828 --project my-project
2929```
3030
31- The last command (` postgres:database :attach ` ) will add an environment variable to ` my-project ` named ` DATABASE_URL ` that looks something like this:
31+ The last command (` postgres:databases :attach ` ) will add an environment variable to ` my-project ` named ` DATABASE_URL ` that looks something like this:
3232
3333```
3434postgresql://t43ugkmyi1fi8qok:mRp0CMSaN13FPAYz@postgres-instance-nuclear-rabbit-postgres/ms6y0semmct194hs
@@ -68,12 +68,12 @@ This will output `nuclear-rabbit`.
6868Once you have added an instance, you can databases to it.
6969
7070``` bash
71- disco postgres:database :add --instance nuclear-rabbit
71+ disco postgres:databases :add --instance nuclear-rabbit
7272```
7373
7474It should output the name of the database, like ` ms6y0semmct194hs ` . You can retrieve the list of databases later with
7575``` bash
76- disco postgres:database :list --instance nuclear-rabbit
76+ disco postgres:databases :list --instance nuclear-rabbit
7777```
7878
7979### Attaching a Database to a Project
@@ -83,7 +83,7 @@ So far, you installed the addon, added a Postgres instance and created a databas
8383You can attach it to your project with
8484
8585``` bash
86- disco postgres:database :attach \
86+ disco postgres:databases :attach \
8787 --instance nuclear-rabbit \
8888 --database ms6y0semmct194hs \
8989 --project my-project
@@ -104,7 +104,7 @@ disco env:get DATABASE_URL --project my-project
104104You can choose another environmnent variable by passing ` --env-var VAR_NAME ` :
105105
106106``` bash
107- disco postgres:database :attach \
107+ disco postgres:databases :attach \
108108 --instance nuclear-rabbit \
109109 --database ms6y0semmct194hs \
110110 --project my-project \
0 commit comments