create-astro-theme
v1.0.6
Published
A CLI tool for creating or using themes using `astro-theme-provider`
Downloads
14
Readme
create-astro-theme
A CLI tool for creating and using themes with astro-theme-provider.
Prerequisites
Currently, this tool only supports pnpm. Support for npm is planned for the future.
Usage
You can use create-astro-theme with pnpm:
# With pnpm
pnpm create astro-theme@latestThis will start an interactive prompt that will guide you through the process.
Commands
create-astro-theme has two main commands: use and create.
use
The use command helps you use an existing Astro theme in a new project.
pnpm create astro-theme@latest use <theme-name>This will create a new project that uses the specified theme.
Options:
| Option | Description |
| --------------- | ---------------------------------------------------------- |
| --dry-run | Show what would be done without actually making changes. |
| --verbose | Show more detailed output. |
| --skip | Use recommended or default settings and skip prompts. |
| --project-name| Specify the project name. |
create
The create command helps you create a new Astro theme.
pnpm create astro-theme@latest create <theme-name>This will create a new directory with the specified theme name, containing a new Astro theme project.
Options:
| Option | Description |
| --------------- | ---------------------------------------------------------- |
| --dry-run | Show what would be done without actually making changes. |
| --verbose | Show more detailed output. |
| --skip | Use recommended or default settings and skip prompts. |
| --project-name| Specify the project name (defaults to <theme-name>). |
| --theme-name | Specify the theme name (defaults to <theme-name>). |
Contributing
Contributions are welcome! Please open an issue or submit a pull request on our GitHub repository.
License
This project is licensed under the MIT License.
