Skip to content

Commit a428e3a

Browse files
authored
Merge pull request #131 from wasmerio/docs-update-760b9e73-9e37-4b0a-b137-ca50ccbbd137-20250428-065126
docs: Add app database management CLI commands
2 parents be248f5 + 2d24838 commit a428e3a

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

pages/edge/cli.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,30 @@ identifier, which is persisted in the `app.yaml` file upon deploying.
138138
### Listing your apps (`wasmer app list`)
139139
In order to show all the apps linked to your account, you can use the `wasmer app list` command.
140140

141+
### Managing app databases (`wasmer app database`)
142+
If your app uses databases, you can manage them using the `wasmer app database` subcommands.
143+
144+
#### Listing app databases (`wasmer app database list`)
145+
To list all databases attached to your app, use the `wasmer app database list` command:
146+
147+
```shell
148+
wasmer app database list
149+
```
150+
151+
This will display information about each database, including:
152+
- Name
153+
- Host
154+
- Port
155+
- UI link (if available)
156+
157+
If you need to see the database passwords as well, you can use the `--with-password` flag:
158+
159+
```shell
160+
wasmer app database list --with-password
161+
```
162+
163+
This is particularly useful when you need to connect to your database using external tools or when troubleshooting connection issues.
164+
141165
### Creating an app (`wasmer app create`)
142166
The Wasmer CLI allows users to intentionally create an app, but if a user runs
143167
`wasmer deploy` without an app available, the app creation process will be

pages/edge/configuration.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@ capabilities:
177177
- us-socal1
178178
```
179179

180+
You can list the databases attached to your app using the CLI:
181+
182+
```bash
183+
wasmer app database list
184+
```
185+
186+
This command will show you all databases associated with your app, including their names, hosts, and ports. If you need to see the database passwords as well, you can use the `--with-password` flag:
187+
188+
```bash
189+
wasmer app database list --with-password
190+
```
191+
180192
#### `instaboot`
181193

182194
Enable fast application startup with startup snapshots.

0 commit comments

Comments
 (0)