From ebd28fe79b889cc5a7b880910154677d35b670a3 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 14 Oct 2025 00:44:28 +0000 Subject: [PATCH] Add CLI tools docs page cgen-ff0bd0c8a41d4aca8a673c75bdf79f2b --- client/pages/docs/DocsCli.tsx | 235 ++++++++++++++++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 client/pages/docs/DocsCli.tsx diff --git a/client/pages/docs/DocsCli.tsx b/client/pages/docs/DocsCli.tsx new file mode 100644 index 00000000..c00ccade --- /dev/null +++ b/client/pages/docs/DocsCli.tsx @@ -0,0 +1,235 @@ +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; +import { Badge } from "@/components/ui/badge"; +import { + Table, + TableBody, + TableCell, + TableHead, + TableHeader, + TableRow, + TableCaption, +} from "@/components/ui/table"; +import { Button } from "@/components/ui/button"; +import { Link } from "react-router-dom"; +import { + Terminal, + Cpu, + PlayCircle, + Settings, + Activity, + CloudLightning, + Shield, + ArrowRight, +} from "lucide-react"; + +const commands = [ + { + command: "aethex init [name]", + description: "Scaffold a new project with opinionated defaults", + usage: "Creates configuration, environments, and starter services", + }, + { + command: "aethex login", + description: "Authenticate the CLI with your AeThex identity", + usage: "Support for browser-based login and personal access tokens", + }, + { + command: "aethex deploy", + description: "Build and deploy the current project", + usage: "Runs tests, packages artifacts, and promotes to the target environment", + }, + { + command: "aethex env pull", + description: "Sync environment variables and secrets", + usage: "Keeps local .env files mirrored with the dashboard", + }, + { + command: "aethex pipeline logs", + description: "Stream deployment logs in real time", + usage: "Supports filters by environment, branch, or commit SHA", + }, +]; + +const automationTips = [ + { + title: "GitHub Actions", + description: + "Use the official AeThex GitHub Action to authenticate, run smoke tests, and deploy on every pull request merge.", + }, + { + title: "Audit Trails", + description: + "Every CLI deployment emits audit events. Stream them into your SIEM through the webhooks integration.", + }, + { + title: "Rollbacks", + description: + "`aethex deploy --rollback latest` instantly reverts to the previous stable release and notifies collaborators.", + }, + { + title: "Preview Environments", + description: + "`aethex preview create` spins up disposable stacks tied to feature branches for stakeholder reviews.", + }, +]; + +export default function DocsCli() { + return ( +
+
+ + + CLI Tools + +

Operate AeThex from the command line

+

+ The AeThex CLI automates local development, environment management, and production deployments. It is + built with stability in mind, featuring transactional deploys, shell-friendly output, and native support for + Linux, macOS, and Windows. +

+
+ +
+
+ +

Command catalog

+
+ + + + + + Command + Description + Usage notes + + + + {commands.map((item) => ( + + {item.command} + {item.description} + {item.usage} + + ))} + + Run aethex --help for the full command tree. +
+
+
+
+ +
+ + + + + Local development + + + +

+ Run aethex dev to start local services with hot reloading and the + AeThex mock identity provider. Inspect logs via the integrated tail view. +

+

+ Use aethex data seed to populate sample datasets for QA or demo + accounts. +

+
+
+ + + + + + Environment management + + + +

+ Synchronize configuration with aethex env pull or populate remote + environments from local files using aethex env push. +

+

+ Inspect secrets securely through aethex env inspect. Output is redacted + by default, keeping sensitive data safe in terminal logs. +

+
+
+ + + + + + Deployment safety + + + +

+ Each deployment is transactional: a failure during build or migration automatically halts promotion and + emits alerts to subscribed channels. +

+

+ Gates such as quality checks or approvals can be configured in aethex.config.ts + and enforced automatically by the CLI. +

+
+
+
+ +
+
+ +

Automate everything

+
+
+ {automationTips.map((tip) => ( + + + {tip.title} + + + + {tip.description} + + + + ))} +
+
+ +
+
+
+

Stay safe in production

+

+ The CLI signs every build artifact and enforces checksums during deployment. Combine this with RBAC token + policies to guarantee only trusted pipelines can trigger releases. +

+
+
+ + +
+
+
+
+ ); +}