Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

InstallT3Commands.tsx

31 lines1.1 KB

1import { cn } from "~/lib/utils";
2​
3import { CommandBlock } from "./CommandBlock";
4​
5/**
6 * Setup steps for another computer: install `t3`, then run `command`. Both installers are shown
7 * because the browser showing this is often not the computer being set up.
8 */
9export function InstallT3Commands({
10 command,
11 className,
12}: {
13 readonly command: string;
14 readonly className?: string;
15}) {
16 return (
17 <div className={cn("space-y-2", className)}>
18 <p className="text-xs text-muted-foreground">macOS, Linux</p>
19 <CommandBlock command="curl -fsSL https://t3.codes/install.sh | sh" />
20 <p className="text-xs text-muted-foreground">Windows (PowerShell)</p>
21 <CommandBlock command="irm https://t3.codes/install.ps1 | iex" />
22 <p className="text-xs text-muted-foreground">Then</p>
23 <CommandBlock command={command} />
24 <p className="text-xs text-muted-foreground">
25 Skip the install if you already have <code className="font-mono">t3</code>. If{" "}
26 <code className="font-mono">t3</code> is not found after installing, add the folder the
27 installer names to your PATH.
28 </p>
29 </div>
30 );