### Install and Run Project Locally Source: https://support.bolt.new/llms-full.txt Use this command to install project dependencies and start the development server after downloading a project. ```shell npm install && npm run dev ``` -------------------------------- ### Install Project Dependencies Source: https://support.bolt.new/llms-full.txt Installs the necessary dependencies for the project within the local directory. ```bash npm install ``` -------------------------------- ### Example Project Knowledge Prompt Source: https://support.bolt.new/llms-full.txt A concise instruction set for UI component styling and layout behavior. ```text When creating UI elements, use modular CSS or lightweight inline styles that keep components easy to reuse. Favor layouts built with flexbox or grid so they adapt smoothly without extra configuration. ``` -------------------------------- ### Project Update Prompt Example Source: https://support.bolt.new/building/design-system/sync-design-system Use this prompt structure to guide Bolt in auditing and updating an entire project to match the latest design system revision. ```text Audit the entire project against the active design system. The design system was recently updated with a new revision. Review all components, pages, and layouts in the project and: ``` -------------------------------- ### Example URI Allow List Pattern Source: https://support.bolt.new/cloud/database/authentication This example shows a pattern for the URI allow list, which can include wildcards for multiple redirect URL patterns. Ensure this pattern matches your application's needs for authentication redirects. ```plaintext https://bolt-native-database-ocg0.bolt.host/** ``` -------------------------------- ### Requesting Environment Variables Source: https://support.bolt.new/troubleshooting/issues Example prompts for configuring environment variables in Bolt. ```text Create a .env file for this project with all required environment variables. Use placeholder values so I can replace them with my own. ``` ```text List every environment variable and tell me where each value can be found so I can add them through the Secrets interface. ``` -------------------------------- ### Initialize Mobile Project Prompts Source: https://support.bolt.new/llms-full.txt Examples of initial prompts to ensure Bolt configures the project for mobile development. ```text Build a mobile app for meal planning and grocery lists. ``` ```text Create a mobile app where users can track their workouts and share progress with friends. ``` ```text Build a mobile app for learning a new language with flashcards and quizzes. ``` -------------------------------- ### Example Project Prompt Configuration Source: https://support.bolt.new/best-practices/prompting-effectively A sample prompt configuration used in a Vite React starter project to define design standards and technology constraints. ```text For all designs I ask you to make, have them be beautiful, not cookie cutter. Make webpages that are fully featured and worthy for production. By default, this template supports JSX syntax with Tailwind CSS classes, the shadcn/ui library, React hooks, and Lucide React for icons. Do not install other packages for UI themes, icons, etc unless absolutely necessary or I request them. Use icons from lucide-react for logos. Use stock photos from unsplash where appropriate. ``` -------------------------------- ### Install EAS CLI Source: https://support.bolt.new/llms-full.txt Installs the Expo Application Services command-line tool globally. ```bash npm install -g eas-cli ``` -------------------------------- ### Example Project Prompt Configuration Source: https://support.bolt.new/best-practices/prompting-effectively A sample prompt configuration used in a Vite React starter project to define design standards and library preferences. ```text For all designs I ask you to make, have them be beautiful, not cookie cutter. Make webpages that are fully featured and worthy for production. By default, this template supports JSX syntax with Tailwind CSS classes, the shadcn/ui library, React hooks, and Lucide React for icons. Do not install other packages for UI themes, icons, etc unless absolutely necessary or I request them. ``` -------------------------------- ### Initialize Theme and Schema Source: https://support.bolt.new/account-and-subscription/account-management Sets up dark mode or light mode based on system preferences or stored settings. ```javascript ((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","isDarkMode","dark",null,["dark","light","true","false","system"],{"true":"dark","false":"light","dark":"dark","light":"light"},true,true) ``` -------------------------------- ### Resend API Key Format Source: https://support.bolt.new/llms-full.txt Example format for a Resend API key. ```text re_CQmFPLaM_siCReVwuKEYvFXMRuSAMPLEz ``` -------------------------------- ### Deduplicate package versions Source: https://support.bolt.new/llms-full.txt Analyzes installed packages to remove duplicate or outdated dependency versions. ```bash npm dedupe ```