Skip to content

docs: Deploy and activate on aomi CLI page - #13

Merged
victorchimakanu merged 1 commit into
mainfrom
victor/deploy-cli-page
Jul 6, 2026
Merged

victorchimakanu merged 1 commit into
mainfrom
victor/deploy-cli-page

Conversation

@victorchimakanu

Copy link
Copy Markdown
Contributor

What

Adds a dedicated Deploy and activate on aomi CLI page and splits the CLI path out of the existing deploy page.

  • New: `build/deploy-cli.mdx` — the full CLI walkthrough (connect → deploy → activate → status), with the real command output at every step, a Tokens section (app token vs platform token), and an honest Secrets section (declare the `Secret` slot, the vault→env resolve order, and the code-default option with a caveat).
  • Renamed: the existing `build/deploy.mdx` title → Deploy and activate on Dashboard, its intro reframed to the dashboard path, and its inline "Deploy from the CLI" steps replaced with a pointer card to the new page (no duplicated walkthrough).
  • Nav: `docs.json` places `build/deploy-cli` directly below `build/deploy` under Build on Aomi.

Why

The old page mixed the no-code dashboard flow and the CLI flow on one page. Each now has one home. The CLI page is written from a verified live end-to-end deploy on 2026-07-06 (Monad One-Shot to prod), so every command and every output block is real, not illustrative.

Verified

  • `mint broken-links` passes clean.
  • `docs.json` is valid JSON; every linked slug resolves.
  • House style: zero em dashes, no hyphen-as-dash in prose.

Notes for review

  • The CLI page documents three fixes we hit on the live run: apps must sit at the repo root (the CLI does not build a subdirectory app), the required SDK is 3.0.1 with `sdk check`/`sdk fix` as a mandatory step, and the one-shot `deploy` activates cleanly (manual `activate` is now just a fallback).
  • Backend URL on the new page is `https://api.aomi.dev\` (the prod/community endpoint we deployed against), matching the canonical `aomi-sdk/docs/community-deployment.md`. The dashboard page still references `staging-api.aomi.dev` in places; worth aligning in a follow-up.
  • The retitle/trim of `build/deploy.mdx` touches the shared deploy page. Flagging for a maintainer's eye on the split before merge.

🤖 Generated with Claude Code

Adds build/deploy-cli.mdx, a full CLI deploy walkthrough (connect, deploy,
activate, status) with the real command output at every step, a Tokens
section (app vs platform token), and an honest Secrets section. Verified
against a live end-to-end community deploy on 2026-07-06.

Retitles the existing build/deploy page to 'Deploy and activate on Dashboard'
and replaces its inline CLI steps with a pointer to the new page, so each
deploy path has one home. docs.json places the CLI page directly below the
dashboard page under Build on Aomi.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 6, 2026 13:42
@victorchimakanu
victorchimakanu merged commit a14ff44 into main Jul 6, 2026
1 check passed
@victorchimakanu
victorchimakanu deleted the victor/deploy-cli-page branch July 6, 2026 13:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR splits the deployment docs into two clear paths by adding a dedicated CLI walkthrough page and refocusing the existing deploy page on the no-code dashboard flow, with navigation updated to include the new CLI page under Build on Aomi.

Changes:

  • Added build/deploy-cli.mdx with an end-to-end CLI deploy flow (connect → deploy → activate → status) and supporting sections (tokens, secrets, troubleshooting).
  • Updated build/deploy.mdx to be “Deploy and activate on Dashboard” and replaced the inline CLI walkthrough with a pointer card to the new CLI page.
  • Inserted build/deploy-cli into docs.json nav under Build on Aomi.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.

File Description
docs.json Adds the new CLI deploy page to the Build on Aomi navigation.
build/deploy.mdx Retitles/reframes the page for the dashboard flow and links out to the new CLI guide.
build/deploy-cli.mdx Introduces the full CLI deployment walkthrough, including tokens/secrets/troubleshooting guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread build/deploy-cli.mdx
## Step 7: check status and see it live

```bash
aomi-build deploy status
Comment thread build/deploy-cli.mdx
deploy state : ready
- my-app (apps-144438915-r0ed7523bdf-my-app-7601d95b9abd)
local : activated=true
backend : active=true artifact_ready=true loaded
Comment thread build/deploy-cli.mdx
backend : active=true artifact_ready=true loaded
```

Add `--json` for machine readable output. You want `active`, `artifact_ready`, and `loaded` all true.
Comment thread build/deploy-cli.mdx
`aomi-build deploy` activates for you. You only run activate yourself if you stopped after the build, or you are activating a specific release:

```bash
aomi-build deploy activate \
Comment thread build/deploy-cli.mdx
| `app token is not authorized for platform-level actions` | Your token is app scoped; activation needs platform scope. | Ask the Aomi team for a platform token and use it. See [Tokens](#tokens). |
| `no Cargo.toml found at <repo>/Cargo.toml` | Your App is in a subdirectory. | Move `Cargo.toml`, `aomi.toml`, and `src/` to the repo root and push again. See [Step 2](#step-2-lay-out-your-repo). |
| SDK mismatch | Your pin differs from the platform. | Run `aomi-build sdk fix --backend https://api.aomi.dev`, commit, deploy again. Or pass `--fix-sdk` on deploy. |
| Deploy hangs at "waiting" after CI is green | Old CLI without the CI fallback. | Reinstall the CLI (Step 1). As a one off, kill the process and run `aomi-build deploy activate` by hand. |
Comment thread build/deploy-cli.mdx
| `deploy needs an app source id` | The backend cannot find your connected repo. | Pass `--repo you/my-app`, or run `aomi-build source sync --platform community --repo you/my-app`. |
| Status shows `activate: false` | Activate never ran or failed. | Run [Activate by hand](#activate-by-hand). |
| Deploy uses old code | You did not push your latest commit. | `git push`, deploy again. |
| Everything true except `loaded` | The runtime did not load the plugin. | Run `aomi-build deploy status --json` and share the deployment id and release tag with the team. |
Comment thread build/deploy-cli.mdx
@@ -0,0 +1,333 @@
---
title: Deploy and activate on aomi CLI
Comment thread build/deploy.mdx
- **The portal.** A no-code path in your browser. Click Preflight, Deploy, Activate. This is the recommended path for your first deploy.
- **The CLI.** `aomi-build connect`, then `aomi-build deploy`, then `aomi-build activate`. This is the scriptable path once you know the flow.
- **The dashboard.** A no-code path in your browser. Click Preflight, Deploy, Activate. This page covers it, and it is the recommended path for your first deploy.
- **The CLI.** `aomi-build connect`, then `aomi-build deploy`. The scriptable path once you know the flow. It has its own page: [Deploy and activate on aomi CLI](/build/deploy-cli).
Comment thread build/deploy.mdx
The backend fetches your release, validates it, and loads it. It reads the release tags from `.aomi/deployment.json`, so you usually pass nothing else.
</Step>
</Steps>
<Card title="Deploy and activate on aomi CLI" href="/build/deploy-cli" icon="terminal">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants