import type { Metadata } from "next";
import { BreadcrumbJsonLd, WebPageJsonLd } from "@/components/seo";
import CliContent from "./CliContent";

const BASE_URL = "https://llmhosts.com";

export const metadata: Metadata = {
  title: "CLI Reference — All Commands, Flags, and Options",
  description:
    "Complete CLI reference for the llmhosts command. serve, doctor, keys, tunnel, suggest-models, setup, up, and all flags.",
  alternates: {
    canonical: `${BASE_URL}/docs/cli`,
  },
  openGraph: {
    title: "LLMHosts CLI Reference",
    description: "Every command, flag, and option for the llmhosts CLI tool.",
    url: `${BASE_URL}/docs/cli`,
    siteName: "LLMHosts",
    type: "website",
    images: [
      {
        url: `${BASE_URL}/og?page=docs`,
        width: 1200,
        height: 630,
        alt: "LLMHosts CLI Reference",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "LLMHosts CLI Reference",
    description: "Every command, flag, and option for the llmhosts CLI.",
    images: [`${BASE_URL}/og?page=docs`],
  },
};

export default function CliPage() {
  return (
    <>
      <BreadcrumbJsonLd
        items={[
          { name: "Home", url: BASE_URL },
          { name: "Documentation", url: `${BASE_URL}/docs` },
          { name: "CLI Reference", url: `${BASE_URL}/docs/cli` },
        ]}
      />
      <WebPageJsonLd
        name="LLMHosts CLI Reference"
        description="Complete CLI reference for the llmhosts command."
        url={`${BASE_URL}/docs/cli`}
      />
      <CliContent />
    </>
  );
}
