summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/metal-rocks-design.md5
-rw-r--r--packages/db/src/core/cli/commands/link/index.ts6
2 files changed, 8 insertions, 3 deletions
diff --git a/.changeset/metal-rocks-design.md b/.changeset/metal-rocks-design.md
new file mode 100644
index 000000000..615259f5e
--- /dev/null
+++ b/.changeset/metal-rocks-design.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/db": patch
+---
+
+Fixes some error messages not using the proper command to login or sync the project
diff --git a/packages/db/src/core/cli/commands/link/index.ts b/packages/db/src/core/cli/commands/link/index.ts
index e0498f9c4..52e4b2f2e 100644
--- a/packages/db/src/core/cli/commands/link/index.ts
+++ b/packages/db/src/core/cli/commands/link/index.ts
@@ -67,7 +67,7 @@ async function getWorkspaceId(): Promise<string> {
if (res.status === 401) {
throw new Error(
`${bgRed('Unauthorized')}\n\n Are you logged in?\n Run ${cyan(
- 'astro db login'
+ 'astro login'
)} to authenticate and then try linking again.\n\n`
);
}
@@ -115,7 +115,7 @@ export async function createNewProject({
if (res.status === 401) {
console.error(
`${bgRed('Unauthorized')}\n\n Are you logged in?\n Run ${cyan(
- 'astro db login'
+ 'astro login'
)} to authenticate and then try linking again.\n\n`
);
process.exit(1);
@@ -149,7 +149,7 @@ export async function promptExistingProjectName({ workspaceId }: { workspaceId:
if (res.status === 401) {
console.error(
`${bgRed('Unauthorized')}\n\n Are you logged in?\n Run ${cyan(
- 'astro db login'
+ 'astro login'
)} to authenticate and then try linking again.\n\n`
);
process.exit(1);