diff --git a/agent-context/context/skills/mintlify/reference/cli.md b/agent-context/context/skills/mintlify/reference/cli.md index e669560ff..85edfb1b2 100644 --- a/agent-context/context/skills/mintlify/reference/cli.md +++ b/agent-context/context/skills/mintlify/reference/cli.md @@ -86,7 +86,7 @@ JSON report fields: - `mint login` — Authenticate your Mintlify account. - `mint logout` — Log out of your account. - `mint status` — Show current authentication status (CLI version, email, org, subdomain). -- `mint signup [flags]` — Create a new Mintlify account from an interactive terminal. Flags: `--firstName`, `--lastName`, `--company`, `--email`; omit any to enter it interactively. Waits until you click the emailed verification link before it logs you in. When an agent runs it, or stdin isn't a TTY, it only prints https://mintlify.com/auth.md and creates no account; agents use `mint deploy` and `mint claim` instead. +- `mint signup` — Create a new Mintlify account from an interactive terminal. Opens the signup page in the browser, then logs in and prompts for a project like `mint login`. No flags. When an agent runs it, or stdin isn't a TTY, it only prints https://mintlify.com/auth.md and creates no account; agents use `mint deploy` and `mint claim` instead. - `mint add-domain [--basePath ]` — Add a custom domain to the current project. Requires `mint login`. Pass `--basePath` to serve the documentation from a subpath such as `/docs`. ## Analytics diff --git a/cli/agent-signup.mdx b/cli/agent-signup.mdx index b24a66e9d..e20ae37ab 100644 --- a/cli/agent-signup.mdx +++ b/cli/agent-signup.mdx @@ -6,7 +6,7 @@ keywords: ["mint deploy", "mint claim", "auth.md", "claim", "GitHub Actions"] An AI agent can create and deploy a Mintlify site without first signing up for an account. You can then claim the site an agent creates for you from your own Mintlify account. -Use this site creation and signup flow when you want an agent to work on a site autonomously or when you want to demo a live site before creating an account. If you already have an account or are ready to sign up by email, use the [agent setup workflow](/quickstart) instead. +Use this site creation and signup flow when you want an agent to work on a site autonomously or when you want to demo a live site before creating an account. If you already have an account or are ready to sign up, use the [agent setup workflow](/quickstart) instead. ## Deploy a site diff --git a/cli/commands.mdx b/cli/commands.mdx index e7274b753..dccddf883 100644 --- a/cli/commands.mdx +++ b/cli/commands.mdx @@ -50,40 +50,15 @@ mint dev [flags] Create a new Mintlify account from an interactive terminal. ```bash -mint signup [flags] +mint signup ``` -| Flag | Description | -| --- | --- | -| `--firstName` | Your first name. | -| `--lastName` | Your last name. | -| `--company` | Your company name. | -| `--email` | Email address for the account. | - -Run the command without flags to enter your details interactively. The CLI prompts for any value you do not pass as a flag. - -After you submit your details, Mintlify sends a verification link to your email. The command waits until you click the link, then creates your account, signs you in, and stores your credentials. When it finishes, open the [dashboard](https://app.mintlify.com) to connect your repository and start building. +The command opens your browser to the Mintlify signup page. If your browser doesn't open, copy the URL the CLI prints. After you create your account in the browser, the CLI signs you in, stores your credentials, and asks you to choose a project, like [`mint login`](#mint-login). - `mint signup` does not return until you click the verification link, which can take several minutes. - When an AI agent runs `mint signup`, or the command runs without an interactive terminal, it prints the [agent signup guide](https://mintlify.com/auth.md) instead of creating an account. Agents create sites without an account through [Agent signup](/cli/agent-signup). -### Examples - -```bash -# Sign up interactively -mint signup - -# Sign up with all details provided -mint signup \ - --firstName Jane \ - --lastName Doe \ - --company Acme \ - --email jane@acme.com -``` - --- ## `mint deploy` diff --git a/snippets/agent-setup-workflow.mdx b/snippets/agent-setup-workflow.mdx index 553c7b781..f088fef99 100644 --- a/snippets/agent-setup-workflow.mdx +++ b/snippets/agent-setup-workflow.mdx @@ -5,7 +5,7 @@ If the user asks you to set up Mintlify, a documentation site, or a local Mintli 1. Run `node --version` and confirm it reports Node.js v20.17.0 or newer, preferring an LTS release. The CLI doesn't run on Node.js 25. Note whether it is v22.20 or newer, which step 9 requires. 2. Run `mint --version`. If the command is unavailable, install the CLI with `npm i -g mint` or `pnpm add -g mint`. If the command succeeds, run `mint update`. Then run `mint instructions new-site` for current setup guidance, and `mint instructions` to list topics for later tasks. 3. Run `mint status` before starting authentication. If it already shows an organization, keep the existing session and do not create another account. -4. Run `mint login` if the user has an account. Otherwise, don't create an account now. You can publish without one using `mint deploy` in step 10, and the user creates their account when they claim the site. Don't run `mint signup` for the user: when an agent runs it, it prints the [agent signup guide](https://mintlify.com/auth.md) and exits without sending a verification email. If the user wants their own GitHub repository connected from the start, send them to web onboarding at [mintlify.com/start](https://mintlify.com/start). +4. Run `mint login` if the user has an account. Otherwise, don't create an account now. You can publish without one using `mint deploy` in step 10, and the user creates their account when they claim the site. Don't run `mint signup` for the user: when an agent runs it, it prints the [agent signup guide](https://mintlify.com/auth.md) and creates no account. If the user wants their own GitHub repository connected from the start, send them to web onboarding at [mintlify.com/start](https://mintlify.com/start). 5. After `mint login`, run `mint status` again. Confirm that it reports their email, organization, and subdomain. If the organization exists but no subdomain appears, ask the user to finish selecting or connecting a GitHub repository in the onboarding browser tab, then retry. 6. If the user has an existing documentation repository, clone or open it. Preserve its content. If the user's documentation is on another platform, such as GitBook, ReadMe, or Docusaurus, run `mint migrate --from ` and follow the workflow it prints. Run `mint migrate` without flags to list supported platforms. Don't run `mint migrate --agent`, which starts another coding agent. For a new local project, scaffold into a new, empty directory with either `mint new --name --theme ` or `mint new --name --template `. Without an interactive terminal, `mint new` creates nothing unless you pass `--name` and either `--theme` or `--template`. Ask which theme or template they want if they have not specified one. Do not use `--force` on a directory containing user files. 7. Run `mint dev --no-open` from the directory containing `docs.json` as a background process. Confirm the local URL loads, report it to the user, and stop the process when it is no longer needed.