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"; export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params; const t = await getTranslations({ locale, namespace: "docs.api" }); return { title: t("metaTitle"), description: t("metaDescription"), alternates: buildAlternates(locale, "/docs/api"), }; } function Cmd({ name, desc, cli, socket, }: { name: string; desc: string; cli: string; socket: string; }) { return (
{desc}
{t("intro")}
| {t("buildHeader")} | {t("pathHeader")} |
|---|---|
| {t("release")} |
/tmp/cmux.sock
|
| {t("debug")} |
/tmp/cmux-debug.sock
|
| {t("taggedDebug")} |
/tmp/cmux-debug-<tag>.sock
|
{t("socketOverride")}
{chunks},
})}
| {t("modeHeader")} | {t("descriptionHeader")} | {t("howToEnableHeader")} |
|---|---|---|
| Off | {t("offMode")} | {t("offEnable")} |
| cmux processes only | {t("cmuxOnlyMode")} | {t("cmuxOnlyEnable")} |
| allowAll | {t("allowAllMode")} | {t("allowAllEnable")} |
| {t("flagHeader")} | {t("descriptionHeader")} |
|---|---|
--socket PATH
|
{t("customSocketPath")} |
--json
|
{t("outputJson")} |
--window ID
|
{t("targetWindow")} |
--workspace ID
|
{t("targetWorkspace")} |
--surface ID
|
{t("targetSurface")} |
--id-format refs|uuids|both
|
{t("idFormat")} |
{t("sidebarMetadataDesc")}
| {t("variableHeader")} | {t("descriptionHeader")} |
|---|---|
CMUX_SOCKET_PATH
|
{t("socketPathDesc")} |
CMUX_SOCKET_ENABLE
|
{t("socketEnableDesc")} |
CMUX_SOCKET_MODE
|
{t("socketModeDesc")} |
CMUX_WORKSPACE_ID
|
{t("workspaceIdDesc")} |
CMUX_SURFACE_ID
|
{t("surfaceIdDesc")} |
TERM_PROGRAM
|
{t("termProgramDesc")} |
TERM
|
{t("termDesc")} |