Strapi comes with a full-featured Command Line Interface (CLI) which lets you set up a project.
Start your Strapi application with autoReload enabled. Learn more
npm run develop
# or
yarn develop
Build your admin panel. Learn more
npm run build
# or
yarn build
Start your Strapi application with autoReload disabled. Learn more
npm run start
# or
yarn start
After deploying your Strapi application, you may need to add new content types, update existing ones, or introduce new components. Here’s how to handle such changes effectively:
- Log in to the Strapi Admin Panel.
- Navigate to Content-Type Builder.
- Click Create a new Single Type.
- Define the structure by adding necessary fields.
- Save the changes and restart the server if required.
- Populate content from the Content Manager.
- Deploy the updated API and ensure the frontend consumes the new endpoint.
- Go to Content-Type Builder.
- Click Create a new Collection Type.
- Add relevant fields like title, description, images, etc.
- Save and restart the server if necessary.
- Add entries in Content Manager.
- Verify API endpoints and update the frontend accordingly.
- Go to Content-Type Builder > Components.
- Click Create a new Component.
- Add fields required for the component (e.g., text, images, relations, etc.).
- Save the component.
- Attach the component to a relevant content type.
- Restart Strapi if required.