create-contentisland
v0.4.2
Published
Content Island - Starlight CLI
Downloads
342
Readme
create-contentisland
Overview
The 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.
Using the Starlight Template
Prerequisites
- A Content Island account (free plans are available).
- A new Content Island project created with the Starlight template.
Step 1 --- Create a Starlight project
Run the following command to create a new Starlight project and install its dependencies:
npm create astro@latest -- --template starlightStep 2 --- Connect your Content Island project
Once your Starlight project has been created, connect it to your Content Island project:
npm create contentisland@latestWhen prompted, provide your Content Island Project API token. You can copy this token from the General tab of your Content Island project settings.
Step 3 --- Sync your content
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:
npm run devStep 4 --- Update content
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:
npm create contentisland@latest update