Content Island - Starlight CLI
npm install create-contentislandThe Content Island CLI allows you to quickly bootstrap codebase
solutions and connect them to your Content Island projects.
Currently, the following template is available:
- Starlight Template
> Additional templates will be added soon.
- A Content Island account (free plans are available).
- A new Content Island project created with the **Starlight
template**.
Run the following command to create a new Starlight project and install
its dependencies:
``bash`
npm create astro@latest -- --template starlight
Once your Starlight project has been created, connect it to your Content
Island project:
`bash`
npm create contentisland@latest
When prompted, provide your Content Island Project API token. You
can copy this token from the General tab of your Content Island
project settings.
The CLI will automatically replace the contents of the content/docs
folder with the content from your Content Island project.
You can then run your project locally:
`bash`
npm run dev
Manage your content directly in Content Island---add, edit, or delete
folders and pages. To update your local Starlight project with the
latest content, run:
`bash``
npm create contentisland@latest update