diff --git a/cli/commands.mdx b/cli/commands.mdx index eb9c5d71b..90bbe5262 100644 --- a/cli/commands.mdx +++ b/cli/commands.mdx @@ -278,7 +278,7 @@ See [Offline export](/deploy/export) for details. ## `mint new` -Create a new documentation project from the Mintlify starter template or a pre-defined template. +Create a new documentation project by picking a theme or cloning a pre-defined template from the [mintlify/templates](https://github.com/mintlify/templates) repository. ```bash mint new [directory] [flags] diff --git a/cli/install.mdx b/cli/install.mdx index 57944471e..e2670db3f 100644 --- a/cli/install.mdx +++ b/cli/install.mdx @@ -41,12 +41,20 @@ If you do not specify a directory, the CLI prompts you to create a new subdirect | `--template` | Pre-defined template. The CLI prompts for this if not provided. | | `--force` | Overwrite the current directory without prompting. | -In interactive mode, the CLI asks whether you want to start from scratch or use a template. To skip the prompt, pass the `--template` flag directly: +In interactive mode, the CLI asks whether you want to pick a theme or clone a template. To skip the prompt, pass the `--template` flag directly: ```bash mint new my-docs --template ``` +You can combine `--template` with `--theme` to override the template's default theme: + +```bash +mint new my-docs --template --theme +``` + +See available templates in the [mintlify/templates](https://github.com/mintlify/templates) repository on GitHub. In interactive mode, the CLI fetches and displays available templates automatically. + In non-interactive environments such as CI/CD pipelines or AI coding agents, you must provide either `--name` and `--theme` flags, or the `--template` flag. ## Update