Skip to content

Conversation

@cdxker
Copy link
Contributor

@cdxker cdxker commented Jan 15, 2026

Enhanced the installation documentation to better document the new --theme, --name, and --force flags for the mint new command. Added examples for non-interactive/programmatic usage in CI/CD pipelines and with AI coding agents.


Created by Mintlify agent


Note

Updates installation docs for mint new:

  • Adds a Flags section with a table documenting --name, --theme, and --force (with required status)
  • Clarifies non-interactive/CI usage requiring --name and --theme, with a tip on auto-detection and usage output

Written by Cursor Bugbot for commit 9c43c02. This will update automatically on new commits. Configure here.

Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
@ethanpalm ethanpalm merged commit 8d598bd into main Jan 16, 2026
6 checks passed
@ethanpalm ethanpalm deleted the mintlify/document-mint-new-cli-flags-95370 branch January 16, 2026 23:50
* `--theme`: Set the theme of the new project.
* `--name`: Set the name of the new project.
* `--force`: Overwrite the current directory if it already exists.
| Flag | Description | Required |
Copy link
Contributor

Choose a reason for hiding this comment

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

The table reads like --name/--theme are always required, but the section above says the CLI prompts for these interactively. Clarifying the column header would avoid that mismatch.

Suggested change
| Flag | Description | Required |
| Flag | Description | Required in non-interactive |

| `--force` | Overwrite the current directory without prompting, even if it contains existing files. | No |

For example, to create a new project in the `docs` directory with the name `my-project` and the theme `linden`, run the following command:
When running `mint new` in non-interactive environments like CI/CD pipelines or with AI coding agents, you must provide all required flags (`--name` and `--theme`).
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this section targets CI/CD and agents, a copy/paste example is still really helpful (and shows quoting when the name has spaces).

Suggested change
When running `mint new` in non-interactive environments like CI/CD pipelines or with AI coding agents, you must provide all required flags (`--name` and `--theme`).
When running `mint new` in non-interactive environments like CI/CD pipelines or with AI coding agents, you must provide `--name` and `--theme` to skip the interactive prompts.
```bash
mint new docs --name "My Project" --theme linden

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.

3 participants