Skip to content

Commit 5169477

Browse files
fix: Add '--database' flag to update database commands (#6491)
Had user feedback and have validated the flag is needed.
1 parent a584807 commit 5169477

File tree

1 file changed

+4
-4
lines changed
  • content/shared/influxdb3-cli/update/database

1 file changed

+4
-4
lines changed

content/shared/influxdb3-cli/update/database/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Updates a database retention period to 30 days.
8080
<!--pytest.mark.skip-->
8181

8282
```bash{placeholders="DATABASE_NAME|AUTH_TOKEN"}
83-
influxdb3 update database --retention-period 30d DATABASE_NAME
83+
influxdb3 update database --retention-period 30d --database DATABASE_NAME
8484
```
8585

8686
### Clear a database retention period
@@ -90,7 +90,7 @@ Removes the retention period from a database by setting it to `none`.
9090
<!--pytest.mark.skip-->
9191

9292
```bash{placeholders="DATABASE_NAME|AUTH_TOKEN"}
93-
influxdb3 update database --retention-period none DATABASE_NAME
93+
influxdb3 update database --retention-period none --database DATABASE_NAME
9494
```
9595

9696
### Update a database with authentication
@@ -100,7 +100,7 @@ Updates a database using an authentication token.
100100
<!--pytest.mark.skip-->
101101

102102
```bash{placeholders="DATABASE_NAME|AUTH_TOKEN"}
103-
influxdb3 update database --token AUTH_TOKEN --retention-period 7d DATABASE_NAME
103+
influxdb3 update database --token AUTH_TOKEN --retention-period 7d --database DATABASE_NAME
104104
```
105105

106-
{{% /show-in %}}
106+
{{% /show-in %}}

0 commit comments

Comments
 (0)