You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a --db-app-token flag to "astro db" execute, push, and verify commands (#15069)
* Add --db-app-token CLI flag to astro db execute, push, and verify commands
* Add changeset
* Fix type errors in utils.js revealed on build
* Bump timeout in unrelated test file to avoid flakiness in Windows-2025/Node 22 check, from 1000ms to 3000ms for two test cases
* Add --db-app-token CLI parameter to query command
* Update changeset
* Update .changeset/happy-rooms-scream.md
* Update .changeset/happy-rooms-scream.md
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Adds a `--db-app-token` CLI flag to `astro db` commands `execute`, `push`, `query`, and `verify`
6
+
7
+
The new Astro DB CLI flags allow you to provide a remote database app token directly instead of `ASTRO_DB_APP_TOKEN`. This ensures that no untrusted code (e.g. CI / CD workflows) has access to the secret that is only needed by the `astro db` commands.
8
+
9
+
The following command can be used to safely push database configuration changes to your project database:
10
+
11
+
```
12
+
astro db push --db-app-token <token>
13
+
```
14
+
15
+
See the [Astro DB integration documentation](https://docs.astro.build/en/guides/integrations-guide/db/#astro-db-cli-reference) for more information.
0 commit comments