Register a Forest project for an application you already run, and print its secrets
forest projects:create:in-app
Register a project for an application you host yourself, where Forest runs inside your existing Rails or Node.js server. The CLI creates the project and prints its environment secrets. It generates no code and does not connect to a database: your application sends its schema to Forest when it first starts with the Forest agent mounted.
Hostname your application runs on. Default http://localhost
-P, --applicationPort
Port your application runs on. Default 3000
--format
Output format: text (default) or json
Output
With the default text format, the CLI prints FOREST_ENV_SECRET and FOREST_AUTH_SECRET, followed by the next steps for Rails and Node.js. Set both variables on your application, then mount the Forest agent:
Rails: add the forest_admin_rails, forest_admin_agent, forest_admin_datasource_toolkit, forest_admin_datasource_customizer and forest_admin_datasource_active_record gems, run bundle install, then rails g forest_admin_rails:install $FOREST_ENV_SECRET.
Node.js: install @forestadmin/agent and a datasource package, then mount the agent on your server.
FOREST_AUTH_SECRET is a value you own: keep the generated one or set your own random string.With --format json, standard output carries only one JSON document, and every other message goes to standard error. The command never prompts in this mode, so you must be logged in first.
The output contains the project’s secrets. Keep it out of version control and shared CI logs.
Examples
# Register a project for a Rails app on port 3000forest projects:create:in-app my-app# Register it for a Node.js app on port 3001 and read the secrets from a scriptforest projects:create:in-app my-app -H http://localhost -P 3001 --format json
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Forest Documentation","colors":{"primary":"#3F5B1E","light":"#DDF327","dark":"#3F5B1E"},"logo":{"light":"https://mintcdn.com/forest/ZO8t9buUjTuKyt-F/images/Standard.svg?fit=max\u0026auto=format\u0026n=ZO8t9buUjTuKyt-F\u0026q=85\u0026s=d4e172941c964df57009cfa8be809b96","dark":"https://mintcdn.com/forest/ZO8t9buUjTuKyt-F/images/LIME.svg?fit=max\u0026auto=format\u0026n=ZO8t9buUjTuKyt-F\u0026q=85\u0026s=91e95470256b93527860cba6c206cbc4"},"favicon":{"light":"https://mintcdn.com/forest/ZO8t9buUjTuKyt-F/images/Standard.svg?fit=max\u0026auto=format\u0026n=ZO8t9buUjTuKyt-F\u0026q=85\u0026s=d4e172941c964df57009cfa8be809b96","dark":"https://mintcdn.com/forest/ZO8t9buUjTuKyt-F/images/LIME.svg?fit=max\u0026auto=format\u0026n=ZO8t9buUjTuKyt-F\u0026q=85\u0026s=91e95470256b93527860cba6c206cbc4"},"navbar":{"links":[{"href":"mailto:support@forestadmin.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.forestadmin.com"}},"footer":{"socials":{"twitter":"https://twitter.com/forest_admin","github":"https://github.com/ForestAdmin","linkedin":"https://linkedin.com/company/forestadmin"}},"contextual":{"options":["copy","view","claude","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"forest","hasAudioNarration":false,"actualSubdomain":"forest","customDomains":["docs.forest.app"],"gitSource":{"type":"github","owner":"forestadmin","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afc56e220d97acf6c36953d","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"Legacy","count":289},{"language":"default","tag":"JavaScript Agents","count":141},{"language":"default","tag":"Ruby Agent","count":140},{"language":"default","tag":"Product","count":115},{"language":"default","tag":"Integrations","count":64},{"language":"default","tag":"Actions","count":48},{"language":"default","tag":"Smart Action Examples","count":34},{"language":"default","tag":"Connect","count":32},{"language":"default","tag":"Process","count":32},{"language":"default","tag":"Upgrade","count":31}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@forestadmin.com"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"reference/cli/projects-create-in-app","slug":"/reference/cli/projects-create-in-app","pageMetadata":{"title":"forest projects:create:in-app","description":"Register a Forest project for an application you already run, and print its secrets","href":"/reference/cli/projects-create-in-app"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Register a Forest project for an application you already run, and print its secrets\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`forest-projectscreatein-app`,children:`forest projects:create:in-app`}),`\n`,_jsx(_components.p,{children:`Register a project for an application you host yourself, where Forest runs inside your existing Rails or Node.js server. The CLI creates the project and prints its environment secrets. It generates no code and does not connect to a database: your application sends its schema to Forest when it first starts with the Forest agent mounted.`}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`forest`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` projects:create:in-app`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`APPLICATION_NAM`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`E`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [options]`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`arguments`,children:`Arguments`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Argument`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`APPLICATION_NAME`})}),_jsx(_components.td,{children:`Name of the project to create (required)`})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Option`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-H, --applicationHost`})}),_jsxs(_components.td,{children:[`Hostname your application runs on. Default `,_jsx(_components.code,{children:`http://localhost`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-P, --applicationPort`})}),_jsxs(_components.td,{children:[`Port your application runs on. Default `,_jsx(_components.code,{children:`3000`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--format`})}),_jsxs(_components.td,{children:[`Output format: `,_jsx(_components.code,{children:`text`}),` (default) or `,_jsx(_components.code,{children:`json`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`output`,children:`Output`}),`\n`,_jsxs(_components.p,{children:[`With the default `,_jsx(_components.code,{children:`text`}),` format, the CLI prints `,_jsx(_components.code,{children:`FOREST_ENV_SECRET`}),` and `,_jsx(_components.code,{children:`FOREST_AUTH_SECRET`}),`, followed by the next steps for Rails and Node.js. Set both variables on your application, then mount the Forest agent:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rails`}),`: add the `,_jsx(_components.code,{children:`forest_admin_rails`}),`, `,_jsx(_components.code,{children:`forest_admin_agent`}),`, `,_jsx(_components.code,{children:`forest_admin_datasource_toolkit`}),`, `,_jsx(_components.code,{children:`forest_admin_datasource_customizer`}),` and `,_jsx(_components.code,{children:`forest_admin_datasource_active_record`}),` gems, run `,_jsx(_components.code,{children:`bundle install`}),`, then `,_jsx(_components.code,{children:`rails g forest_admin_rails:install $FOREST_ENV_SECRET`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Node.js`}),`: install `,_jsx(_components.code,{children:`@forestadmin/agent`}),` and a datasource package, then mount the agent on your server.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`FOREST_AUTH_SECRET`}),` is a value you own: keep the generated one or set your own random string.`]}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`--format json`}),`, standard output carries only one JSON document, and every other message goes to standard error. The command never prompts in this mode, so you must be logged in first.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"projectId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cPROJECT_ID>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"envSecret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cFOREST_ENV_SECRET>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"authSecret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cFOREST_AUTH_SECRET>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"endpoint\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cAPPLICATION_URL>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The output contains the project’s secrets. Keep it out of version control and shared CI logs.`})}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Register a project for a Rails app on port 3000`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`forest`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` projects:create:in-app`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-app`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Register it for a Node.js app on port 3001 and read the secrets from a script`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`forest`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` projects:create:in-app`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-app`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http://localhost`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -P`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3001`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --format`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/reference/cli/start`,children:_jsx(_components.code,{children:`forest start --flow inapp`})}),` runs this command and mounts Forest in your application for you.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"forest projects:create:in-app","description":"Register a Forest project for an application you already run, and print its secrets","href":"/reference/cli/projects-create-in-app"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"forest projects:create:in-app","slug":"forest-projectscreatein-app","depth":1,"children":[]},{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Arguments","slug":"arguments","depth":2,"children":[]},{"title":"Options","slug":"options","depth":2,"children":[]},{"title":"Output","slug":"output","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"forest","siteName":"Forest Documentation","title":"forest projects:create:in-app - Forest Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T13:30:14.268Z","originalFileLocation":"reference/cli/projects-create-in-app.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Register a Forest project for an application you already run, and print its secrets\">\u003cmeta data-mint-head name=\"application-name\" content=\"Forest Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"forest projects:create:in-app - Forest Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Register a Forest project for an application you already run, and print its secrets\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Forest Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.forest.app/reference/cli/projects-create-in-app\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://forest.mintlify.site/_mintlify/api/og/v2?division=Projects\u0026amp;title=forest+projects%3Acreate%3Ain-app\u0026amp;description=Register+a+Forest+project+for+an+application+you+already+run%2C+and+print+its+secrets\u0026amp;theme=5ff2aad1d7ae12d0b1ff840d\u0026amp;signature=a47f05f5da789a2fde4d81bcd457ee291fbe2fb293ffd87aba63a236bca1af73\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"forest projects:create:in-app - Forest Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Register a Forest project for an application you already run, and print its secrets\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://forest.mintlify.site/_mintlify/api/og/v2?division=Projects\u0026amp;title=forest+projects%3Acreate%3Ain-app\u0026amp;description=Register+a+Forest+project+for+an+application+you+already+run%2C+and+print+its+secrets\u0026amp;theme=5ff2aad1d7ae12d0b1ff840d\u0026amp;signature=a47f05f5da789a2fde4d81bcd457ee291fbe2fb293ffd87aba63a236bca1af73\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/forest/9euPPsOQWnB89Kt3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Forest Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3F5B1E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.forest.app/reference/cli/projects-create-in-app\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/cli/projects-create-in-app.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.forest.app/#organization\",\"name\":\"Forest Documentation\",\"url\":\"https://docs.forest.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/forest/ZO8t9buUjTuKyt-F/images/Standard.svg?fit=max\u0026auto=format\u0026n=ZO8t9buUjTuKyt-F\u0026q=85\u0026s=d4e172941c964df57009cfa8be809b96\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.forest.app#website\",\"name\":\"Forest Documentation\",\"url\":\"https://docs.forest.app\",\"publisher\":{\"@id\":\"https://docs.forest.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.forest.app/reference/cli/projects-create-in-app#webpage\",\"url\":\"https://docs.forest.app/reference/cli/projects-create-in-app\",\"name\":\"forest projects:create:in-app\",\"description\":\"Register a Forest project for an application you already run, and print its secrets\",\"dateModified\":\"2026-11-17T13:30:14.268Z\",\"isPartOf\":{\"@id\":\"https://docs.forest.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.forest.app/reference/cli/projects-create-in-app#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.forest.app/reference/cli/projects-create-in-app#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI\",\"item\":\"https://docs.forest.app/reference/cli/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Projects\",\"item\":\"https://docs.forest.app/reference/cli/projects\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"forest projects:create:in-app\",\"item\":\"https://docs.forest.app/reference/cli/projects-create-in-app\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.forest.app/reference/cli/projects-create-in-app#article\",\"headline\":\"forest projects:create:in-app\",\"name\":\"forest projects:create:in-app\",\"description\":\"Register a Forest project for an application you already run, and print its secrets\",\"url\":\"https://docs.forest.app/reference/cli/projects-create-in-app\",\"mainEntityOfPage\":{\"@id\":\"https://docs.forest.app/reference/cli/projects-create-in-app#webpage\"},\"dateModified\":\"2026-11-17T13:30:14.268Z\",\"publisher\":{\"@id\":\"https://docs.forest.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.forest.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Forest Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Forest Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/cli/projects-create-in-app.md","siteName":"Forest Documentation","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started/intro-to-forest-admin"}]},{"tab":"Product","pages":[{"title":"Product","href":"/product/overview"}]},{"tab":"Reference","groups":[{"group":"Overview","pages":[{"title":"Reference","href":"/reference/overview"}]},{"group":"Agent API","pages":[{"title":"Agent SDK overview","href":"/reference/agent-api/overview"},{"title":"Agent API Reference","href":"/reference/agent-api/nodejs"},{"title":"Ruby Agent API Reference","href":"/reference/agent-api/ruby"}]},{"group":"Public API","pages":[{"title":"Public API","href":"/reference/api/introduction"},{"title":"API Authentication","href":"/reference/api/authentication"},{"title":"API Rate Limits","href":"/reference/api/rate-limits"},{"group":"Endpoints","pages":[{"title":"Activity Logs","href":"/reference/api/endpoints/activity-logs"},{"title":"Admin Logs","href":"/reference/api/endpoints/admin-logs"},{"title":"Notes","href":"/reference/api/endpoints/notes"},{"title":"Trigger a workflow via webhook","href":"/reference/api/endpoints/trigger-workflow-webhook"}]}]},{"group":"CLI","pages":[{"title":"Forest CLI","href":"/reference/cli/overview"},{"group":"Set up","pages":[{"title":"forest start","href":"/reference/cli/start"},{"title":"forest login","href":"/reference/cli/login"},{"title":"forest logout","href":"/reference/cli/logout"},{"title":"forest user","href":"/reference/cli/user"},{"title":"forest init","href":"/reference/cli/init"}]},{"group":"Projects","pages":[{"title":"forest projects","href":"/reference/cli/projects"},{"title":"forest projects:get","href":"/reference/cli/projects-get"},{"title":"forest projects:create:demo","href":"/reference/cli/projects-create-demo"},{"title":"forest projects:create:sql","href":"/reference/cli/projects-create-sql"},{"title":"forest projects:create:nosql","description":"Create a Forest project and generate a Node.js back-end on a MongoDB database","href":"/reference/cli/projects-create-nosql"},{"title":"forest projects:create:in-app","href":"/reference/cli/projects-create-in-app"}]},{"group":"Coding agents","pages":[{"title":"forest skills:init","description":"Install the Forest skills for your coding agent in the current repository","href":"/reference/cli/skills-init"},{"title":"forest skills:update","href":"/reference/cli/skills-update"}]},{"group":"Layout","pages":[{"title":"forest layout:pull","href":"/reference/cli/layout-pull"},{"title":"forest layout:apply","href":"/reference/cli/layout-apply"},{"title":"forest layout:patch","href":"/reference/cli/layout-patch"}]},{"group":"Workflows","pages":[{"title":"forest workflow:apply","href":"/reference/cli/workflow-apply"}]},{"group":"Branches \u0026 deployment","pages":[{"title":"forest branch","href":"/reference/cli/branch"},{"title":"forest switch","href":"/reference/cli/switch"},{"title":"forest set-origin","href":"/reference/cli/set-origin"},{"title":"forest push","href":"/reference/cli/push"},{"title":"forest deploy","href":"/reference/cli/deploy"}]},{"group":"Environments","pages":[{"title":"forest environments","href":"/reference/cli/environments"},{"title":"forest environments:create","href":"/reference/cli/environments-create"},{"title":"forest environments:get","href":"/reference/cli/environments-get"},{"title":"forest environments:update","href":"/reference/cli/environments-update"},{"title":"forest environments:delete","href":"/reference/cli/environments-delete"},{"title":"forest environments:reset","href":"/reference/cli/environments-reset"}]},{"group":"Roles","pages":[{"title":"forest roles:create","href":"/reference/cli/roles-create"},{"title":"forest roles:copy","href":"/reference/cli/roles-copy"},{"title":"forest roles:export","href":"/reference/cli/roles-export"},{"title":"forest roles:apply","href":"/reference/cli/roles-apply"}]},{"group":"Teams","pages":[{"title":"forest teams:create","href":"/reference/cli/teams-create"},{"title":"forest teams:delete","href":"/reference/cli/teams-delete"},{"title":"forest teams:copy-layout","href":"/reference/cli/teams-copy-layout"}]},{"group":"Users","pages":[{"title":"forest users:list","href":"/reference/cli/users-list"},{"title":"forest users:invite","href":"/reference/cli/users-invite"},{"title":"forest users:edit","href":"/reference/cli/users-edit"}]},{"group":"Schema","pages":[{"title":"forest schema:apply","href":"/reference/cli/schema-apply"},{"title":"forest schema:diff","href":"/reference/cli/schema-diff"},{"title":"forest schema:update","href":"/reference/cli/schema-update"}]}]},{"group":"Schema","pages":[{"title":".forestadmin-schema.json","href":"/reference/schema/forestadmin-schema"}]},{"group":"Best Practices","pages":[{"title":"Performance","href":"/guides/best-practices/performance"},{"title":"Monitoring","href":"/guides/best-practices/monitoring"},{"title":"Troubleshooting","href":"/guides/best-practices/troubleshooting"},{"title":"Layout maintenance","href":"/guides/best-practices/layout-maintenance"}]}]},{"tab":"Legacy","pages":[{"title":"Legacy","href":"/legacy/agents-overview"}]}]},"basePath":"","title":"forest projects:create:in-app - Forest Documentation","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":[],"chunks":[]}