import { useTranslations } from "next-intl"; import { getTranslations } from "next-intl/server"; import { buildAlternates } from "../../../../i18n/seo"; import { CodeBlock } from "../../components/code-block"; import { Callout } from "../../components/callout"; import { DownloadButton } from "../../components/download-button"; export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params; const t = await getTranslations({ locale, namespace: "docs.gettingStarted" }); return { title: t("metaTitle"), description: t("metaDescription"), alternates: buildAlternates(locale, "/docs/getting-started"), }; } export default function GettingStartedPage() { const t = useTranslations("docs.gettingStarted"); return ( <>

{t("title")}

{t("intro")}

{t("install")}

{t("dmgRecommended")}

{t("dmgDesc")}

{t("homebrew")}

{`brew tap manaflow-ai/cmux brew install --cask cmux`}

{t("updateLater")}

{`brew upgrade --cask cmux`} {t.rich("firstLaunchCallout", { strong: (chunks) => {chunks}, })}

{t("verifyTitle")}

{t("verifyDesc")}

{t("cliSetup")}

{t("cliDesc")}

{`sudo ln -sf "/Applications/cmux.app/Contents/Resources/bin/cmux" /usr/local/bin/cmux`}

{t("cliThen")}

{`cmux list-workspaces cmux notify --title "Build Complete" --body "Your build finished"`}

{t("autoUpdates")}

{t("autoUpdatesDesc")}

{t("sessionRestore")}

{t("sessionRestoreDesc")}

{t("sessionCallout")}

{t("requirements")}

); }