Create a Forest project and generate a Node.js back-end on a MongoDB database
forest projects:create:nosql
Create a new project on a MongoDB database. The CLI registers the project on Forest, tests the database connection, and generates a Node.js back-end in a new directory named after the project.
Name of the project to create (required). Also the name of the generated directory
Options
Option
Description
-c, --databaseConnectionURL
Database connection URL, such as mongodb://user:password@host:27017/db. Replaces the individual connection options
-h, --databaseHost
Database hostname
-p, --databasePort
Database port
-n, --databaseName
Database name
-u, --databaseUser
Database user
--databasePassword
Database password
--mongoDBSRV
Use an SRV DNS record to connect
--databaseSslMode
SSL mode: preferred, verify, required or disabled
--databaseSSL
Use SSL for the database connection. Use either this option or --databaseSslMode
-l, --language
Language of the generated back-end: javascript or typescript
-H, --applicationHost
Hostname the back-end runs on. Default http://localhost
-P, --applicationPort
Port the back-end runs on. Default 3310
--databaseConnectionURL cannot be combined with --databaseHost, --databasePort, --databaseName, --databaseUser, --databasePassword or --mongoDBSRV.
Interactive prompts
The CLI prompts for every option you leave out. It first asks for a connection URL: paste one, or leave the answer blank to enter the connection settings one by one. The URL is masked while you type it. The URL prompt is skipped when you pass any individual connection option.Accepted URL schemes are mongodb:// and mongodb+srv://, in lowercase.
What it generates
A Node.js back-end connected to your database, with an embedded workflow executor that runs Forest workflows in the back-end process. It keeps workflow runs in memory, so they are lost when the back-end restarts.
A .env file with FOREST_ENV_SECRET, FOREST_AUTH_SECRET, APPLICATION_PORT and DATABASE_URL.
The .env file holds your database credentials and the project’s secrets. Keep it out of version control.
Then start the back-end:
cd my-back-officenpm installnpm run build # TypeScript projects onlynpm start
On its first start, the back-end sends its schema to Forest and your development environment becomes active.
Examples
# Answer the promptsforest projects:create:nosql my-back-office# Create a project from a connection URL, without promptsforest projects:create:nosql my-back-office \ --databaseConnectionURL "mongodb+srv://user:password@cluster0.example.mongodb.net/shop" \ --language typescript --applicationHost http://localhost --applicationPort 3310
Was this page helpful?
{"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-nosql","slug":"/reference/cli/projects-create-nosql","pageMetadata":{"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"},"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: \"Create a Forest project and generate a Node.js back-end on a MongoDB database\"\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={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,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-projectscreatenosql`,children:`forest projects:create:nosql`}),`\n`,_jsx(_components.p,{children:`Create a new project on a MongoDB database. The CLI registers the project on Forest, tests the database connection, and generates a Node.js back-end in a new directory named after the project.`}),`\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:nosql`}),_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). Also the name of the generated directory`})]})})]}),`\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:`-c, --databaseConnectionURL`})}),_jsxs(_components.td,{children:[`Database connection URL, such as `,_jsx(_components.code,{children:`mongodb://user:password@host:27017/db`}),`. Replaces the individual connection options`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-h, --databaseHost`})}),_jsx(_components.td,{children:`Database hostname`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-p, --databasePort`})}),_jsx(_components.td,{children:`Database port`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-n, --databaseName`})}),_jsx(_components.td,{children:`Database name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-u, --databaseUser`})}),_jsx(_components.td,{children:`Database user`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--databasePassword`})}),_jsx(_components.td,{children:`Database password`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--mongoDBSRV`})}),_jsx(_components.td,{children:`Use an SRV DNS record to connect`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--databaseSslMode`})}),_jsxs(_components.td,{children:[`SSL mode: `,_jsx(_components.code,{children:`preferred`}),`, `,_jsx(_components.code,{children:`verify`}),`, `,_jsx(_components.code,{children:`required`}),` or `,_jsx(_components.code,{children:`disabled`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--databaseSSL`})}),_jsxs(_components.td,{children:[`Use SSL for the database connection. Use either this option or `,_jsx(_components.code,{children:`--databaseSslMode`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-l, --language`})}),_jsxs(_components.td,{children:[`Language of the generated back-end: `,_jsx(_components.code,{children:`javascript`}),` or `,_jsx(_components.code,{children:`typescript`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-H, --applicationHost`})}),_jsxs(_components.td,{children:[`Hostname the back-end 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 the back-end runs on. Default `,_jsx(_components.code,{children:`3310`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--databaseConnectionURL`}),` cannot be combined with `,_jsx(_components.code,{children:`--databaseHost`}),`, `,_jsx(_components.code,{children:`--databasePort`}),`, `,_jsx(_components.code,{children:`--databaseName`}),`, `,_jsx(_components.code,{children:`--databaseUser`}),`, `,_jsx(_components.code,{children:`--databasePassword`}),` or `,_jsx(_components.code,{children:`--mongoDBSRV`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`interactive-prompts`,children:`Interactive prompts`}),`\n`,_jsx(_components.p,{children:`The CLI prompts for every option you leave out. It first asks for a connection URL: paste one, or leave the answer blank to enter the connection settings one by one. The URL is masked while you type it. The URL prompt is skipped when you pass any individual connection option.`}),`\n`,_jsxs(_components.p,{children:[`Accepted URL schemes are `,_jsx(_components.code,{children:`mongodb://`}),` and `,_jsx(_components.code,{children:`mongodb+srv://`}),`, in lowercase.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-it-generates`,children:`What it generates`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A Node.js back-end connected to your database, with an embedded workflow executor that runs Forest workflows in the back-end process. It keeps workflow runs in memory, so they are lost when the back-end restarts.`}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.code,{children:`.env`}),` file with `,_jsx(_components.code,{children:`FOREST_ENV_SECRET`}),`, `,_jsx(_components.code,{children:`FOREST_AUTH_SECRET`}),`, `,_jsx(_components.code,{children:`APPLICATION_PORT`}),` and `,_jsx(_components.code,{children:`DATABASE_URL`}),`.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`.env`}),` file holds your database credentials and the project’s secrets. Keep it out of version control.`]})}),`\n`,_jsx(_components.p,{children:`Then start the back-end:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-back-office`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` build`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # TypeScript projects only`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`On its first start, the back-end sends its schema to Forest and your development environment becomes active.`}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Answer the prompts`})}),`\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:nosql`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-back-office`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create a project from a connection URL, without prompts`})}),`\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:nosql`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-back-office`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --databaseConnectionURL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mongodb+srv://user:password@cluster0.example.mongodb.net/shop\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --language`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` typescript`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --applicationHost`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http://localhost`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --applicationPort`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3310`})]}),`\n`]})})})]})}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:nosql","description":"Create a Forest project and generate a Node.js back-end on a MongoDB database","href":"/reference/cli/projects-create-nosql"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"forest projects:create:nosql","slug":"forest-projectscreatenosql","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":"Interactive prompts","slug":"interactive-prompts","depth":2,"children":[]},{"title":"What it generates","slug":"what-it-generates","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"forest","siteName":"Forest Documentation","title":"forest projects:create:nosql - Forest Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T13:30:14.268Z","originalFileLocation":"reference/cli/projects-create-nosql.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=\"Create a Forest project and generate a Node.js back-end on a MongoDB database\">\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:nosql - Forest Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a Forest project and generate a Node.js back-end on a MongoDB database\">\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-nosql\">\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%3Anosql\u0026amp;description=Create+a+Forest+project+and+generate+a+Node.js+back-end+on+a+MongoDB+database\u0026amp;theme=5ff2aad1d7ae12d0b1ff840d\u0026amp;signature=43e7b55285c28b77414285c3fc2655d02df9709223cd5e2422cff50fe305092c\">\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:nosql - Forest Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a Forest project and generate a Node.js back-end on a MongoDB database\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://forest.mintlify.site/_mintlify/api/og/v2?division=Projects\u0026amp;title=forest+projects%3Acreate%3Anosql\u0026amp;description=Create+a+Forest+project+and+generate+a+Node.js+back-end+on+a+MongoDB+database\u0026amp;theme=5ff2aad1d7ae12d0b1ff840d\u0026amp;signature=43e7b55285c28b77414285c3fc2655d02df9709223cd5e2422cff50fe305092c\">\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-nosql\">\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-nosql.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-nosql#webpage\",\"url\":\"https://docs.forest.app/reference/cli/projects-create-nosql\",\"name\":\"forest projects:create:nosql\",\"description\":\"Create a Forest project and generate a Node.js back-end on a MongoDB database\",\"dateModified\":\"2026-11-17T13:30:14.268Z\",\"isPartOf\":{\"@id\":\"https://docs.forest.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.forest.app/reference/cli/projects-create-nosql#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.forest.app/reference/cli/projects-create-nosql#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:nosql\",\"item\":\"https://docs.forest.app/reference/cli/projects-create-nosql\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.forest.app/reference/cli/projects-create-nosql#article\",\"headline\":\"forest projects:create:nosql\",\"name\":\"forest projects:create:nosql\",\"description\":\"Create a Forest project and generate a Node.js back-end on a MongoDB database\",\"url\":\"https://docs.forest.app/reference/cli/projects-create-nosql\",\"mainEntityOfPage\":{\"@id\":\"https://docs.forest.app/reference/cli/projects-create-nosql#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-nosql.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","description":"Create a Forest project and generate a Node.js back-end on a SQL database","href":"/reference/cli/projects-create-sql"},{"title":"forest projects:create:nosql","href":"/reference/cli/projects-create-nosql"},{"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"}]},{"group":"Coding agents","pages":[{"title":"forest skills:init","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:nosql - Forest Documentation","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":[],"chunks":[]}