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

InstallT3Commands.tsx

36 lines1.2 KB

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