---
title: "Project files"
description: "Every file the scaffold writes or the tooling regenerates: who owns it, what it exports, which exports doctor holds it to, and the files you add for the features you use."
canonical_url: "https://nuxt-backend.dev/docs/reference/configuration/project-files"
---
# Project files

> Every file the scaffold writes or the tooling regenerates: who owns it, what it exports, which exports doctor holds it to, and the files you add for the features you use.

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- [Source](https://github.com/qruto/nuxt-backend/blob/main/src/templates.ts)

`npx nuxt-backend init` writes these files into the Convex functions directory (`backend/` unless `convex.json` names another) when they are missing. This page lists each one with who owns it and what it exports, so you know which file to edit and which exports must stay. Once written, a file is yours: nothing overwrites it without `--force`, and `doctor --fix` only restores a file that is gone. The composables and the packaged components call some exports by name, so `doctor` reports a deployment that lacks one as [`function-contract`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract).

## The scaffold

The scaffold writes only the files the package calls into, so no empty `aggregates.ts`, `search.ts`, `crons.ts` or `migrations.ts`, and no demo functions. The tree and the table under [Every file](#every-file) are generated from `src/templates.ts` and `src/contract.ts`.

```text
backend/
├─ convex.config.ts
├─ auth.config.ts
├─ auth.ts
├─ http.ts
├─ billing.catalog.ts
├─ billing.generated.ts
├─ ai.ts
├─ functions.ts
├─ billing.ts
├─ email.ts
├─ rateLimiter.ts
├─ workflows.ts
├─ audit.ts
├─ notifications.ts
├─ account.ts
├─ admin.ts
├─ webhooks.ts
├─ flags.ts
├─ paths.generated.ts
├─ brand.generated.ts
└─ labels.generated.ts
```

`convex.config.ts` mounts `backend` and the components its setup helpers use: `persistentTextStreaming`, `polar`, `rateLimiter`, `shardedCounter` (plan quotas), `workflow` and `workpool`. An app mounts `actionCache`, `aggregate` or `migrations` itself when it uses them ([How it works](https://nuxt-backend.dev/docs/start/concepts/how-it-works#the-scaffolded-convexconfigts)). `.env.example` groups the variables by purpose: Backend, Email, Billing, AI, Protection, Monitoring, then the platform's names ([Environment variables](https://nuxt-backend.dev/docs/reference/configuration/environment-variables#app-variables)).

`backend/functions.ts` calls `createFunctions` once and exports every tier, so no other file builds a second set:

```ts [backend/functions.ts]
import { createFunctions } from 'nuxt-backend/functions'
import { billing } from './billing'
import { rateLimiter } from './rateLimiter'
import { components } from './_generated/api'
import { action, mutation, query } from './_generated/server'

export const { authed, workspace, admin, withRole, withFeature, setUserRole }
  = createFunctions(
    { query, mutation, action },
    { components, billing, rateLimiter, limits: { authed: 'write', workspace: 'write' } },
  )
```

## Files you add

A feature you use gets a file of yours, named as below. The composables read `api.<file>` by default, and each one takes an `api` option to point at another file:

<table>
<thead>
  <tr>
    <th>
      File
    </th>
    
    <th>
      Calls
    </th>
    
    <th>
      Read by
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        backend/access.ts
      </code>
    </td>
    
    <td>
      <code>
        setupAccess
      </code>
    </td>
    
    <td>
      <code>
        useAccessPhase
      </code>
      
      , <code>
        useInvite
      </code>
      
      , <code>
        useAccessAdmin
      </code>
      
      , the admin console's Access tab
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/waitlist.ts
      </code>
    </td>
    
    <td>
      <code>
        setupWaitlist
      </code>
    </td>
    
    <td>
      <code>
        useWaitlist
      </code>
      
      , <code>
        <WaitlistForm>
      </code>
      
      , the Waitlist tab
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/activation.ts
      </code>
    </td>
    
    <td>
      <code>
        defineActivation
      </code>
      
      , passed to <code>
        setupAudit({ checklist })
      </code>
      
       in <code>
        backend/audit.ts
      </code>
    </td>
    
    <td>
      <code>
        useActivation
      </code>
      
      , <code>
        <ActivationChecklist>
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/storage.ts
      </code>
    </td>
    
    <td>
      <code>
        setupStorage
      </code>
    </td>
    
    <td>
      The base module's <code>
        useUpload
      </code>
      
      , with <code>
        api.storage.generateUploadUrl
      </code>
      
      ; <code>
        useShareLink
      </code>
      
      ; <code>
        <UploadField>
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/referrals.ts
      </code>
    </td>
    
    <td>
      <code>
        setupReferrals
      </code>
    </td>
    
    <td>
      <code>
        useReferrals
      </code>
      
      , <code>
        <ReferralCard>
      </code>
      
      , the <code>
        /r/:code
      </code>
      
       page and the admin console's Referrals tab
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/jobs.ts
      </code>
    </td>
    
    <td>
      <code>
        defineJobQueue
      </code>
      
      , importing <code>
        ai
      </code>
      
       from <code>
        backend/ai.ts
      </code>
    </td>
    
    <td>
      <code>
        useJob
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/retention.ts
      </code>
    </td>
    
    <td>
      <code>
        defineRetention
      </code>
      
      , one per table you prune
    </td>
    
    <td>
      Nothing in the app
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/crons.ts
      </code>
      
      , <code>
        backend/migrations.ts
      </code>
      
      , <code>
        backend/search.ts
      </code>
    </td>
    
    <td>
      <code>
        @convex-dev/crons
      </code>
      
      , <code>
        @convex-dev/migrations
      </code>
      
       and <code>
        defineSearch
      </code>
      
      , when you use them
    </td>
    
    <td>
      Your own pages
    </td>
  </tr>
</tbody>
</table>

## Every file

<table>
<thead>
  <tr>
    <th>
      File
    </th>
    
    <th>
      Who writes it
    </th>
    
    <th>
      Exports
    </th>
    
    <th>
      Held to
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        backend/convex.config.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/auth.config.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/auth.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        authComponent
      </code>
      
      , <code>
        createAuth
      </code>
      
      , <code>
        getAuthUser
      </code>
      
      , <code>
        authConfig
      </code>
      
      , <code>
        updateProfile
      </code>
      
      , <code>
        listSessions
      </code>
      
      , <code>
        revokeSession
      </code>
      
      , <code>
        listSignInAlerts
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract">
        <code>
          function-contract
        </code>
      </a>
      
      : <code>
        getAuthUser
      </code>
      
      , <code>
        authConfig
      </code>
      
      , <code>
        updateProfile
      </code>
      
      , <code>
        listSessions
      </code>
      
      , <code>
        revokeSession
      </code>
      
      , <code>
        listSignInAlerts
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/http.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/billing.catalog.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/billing.generated.ts
      </code>
    </td>
    
    <td>
      Regenerated: <code>
        npx nuxt-backend billing sync
      </code>
      
       rewrites it
    </td>
    
    <td>
      <code>
        catalog
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/ai.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        ai
      </code>
      
      , <code>
        getCosts
      </code>
      
      , <code>
        listModerationFlags
      </code>
      
      , <code>
        transform
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/functions.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        authed
      </code>
      
      , <code>
        workspace
      </code>
      
      , <code>
        admin
      </code>
      
      , <code>
        withRole
      </code>
      
      , <code>
        withFeature
      </code>
      
      , <code>
        setUserRole
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/billing.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        billing
      </code>
      
      , <code>
        getPricing
      </code>
      
      , <code>
        getConfiguredProducts
      </code>
      
      , <code>
        getBillingAccess
      </code>
      
      , <code>
        getFeatures
      </code>
      
      , <code>
        getCredits
      </code>
      
      , <code>
        getCurrentSubscription
      </code>
      
      , <code>
        listAllSubscriptions
      </code>
      
      , <code>
        syncEntitlements
      </code>
      
      , <code>
        syncProducts
      </code>
      
      , <code>
        startFreePlan
      </code>
      
      , <code>
        resyncEntitlements
      </code>
      
      , <code>
        generateCheckoutLink
      </code>
      
      , <code>
        generateCustomerPortalUrl
      </code>
      
      , <code>
        updateSubscription
      </code>
      
      , <code>
        cancelSubscription
      </code>
      
      , <code>
        getCancelFlow
      </code>
      
      , <code>
        acceptSaveOffer
      </code>
      
      , <code>
        uncancelSubscription
      </code>
      
      , <code>
        cancelPendingChange
      </code>
      
      , <code>
        pauseSubscription
      </code>
      
      , <code>
        resumeSubscription
      </code>
      
      , <code>
        getOrders
      </code>
      
      , <code>
        getInvoiceUrl
      </code>
      
      , <code>
        getUsageHistory
      </code>
      
      , <code>
        refundOrder
      </code>
      
      , <code>
        getWithdrawal
      </code>
      
      , <code>
        withdraw
      </code>
      
      , <code>
        giftCheckout
      </code>
      
      , <code>
        getReceivedGifts
      </code>
      
      , <code>
        claimGift
      </code>
      
      , <code>
        getSentGifts
      </code>
      
      , <code>
        resendGift
      </code>
      
      , <code>
        changeGiftRecipient
      </code>
      
      , <code>
        rescheduleGift
      </code>
      
      , <code>
        cancelGift
      </code>
      
      , <code>
        runGiftSweep
      </code>
      
      , <code>
        getRevenue
      </code>
      
      , <code>
        getBillingConsole
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract">
        <code>
          function-contract
        </code>
      </a>
      
      : <code>
        generateCheckoutLink
      </code>
      
      , <code>
        generateCustomerPortalUrl
      </code>
      
      , <code>
        getConfiguredProducts
      </code>
      
      , <code>
        getPricing
      </code>
      
      , <code>
        listAllSubscriptions
      </code>
      
      , <code>
        giftCheckout
      </code>
      
      , <code>
        getCurrentSubscription
      </code>
      
      , <code>
        getFeatures
      </code>
      
      , <code>
        getBillingAccess
      </code>
      
      , <code>
        getCredits
      </code>
      
      , <code>
        syncEntitlements
      </code>
      
      , <code>
        syncProducts
      </code>
      
      , <code>
        startFreePlan
      </code>
      
      , <code>
        getReceivedGifts
      </code>
      
      , <code>
        claimGift
      </code>
      
      , <code>
        getSentGifts
      </code>
      
      , <code>
        resendGift
      </code>
      
      , <code>
        changeGiftRecipient
      </code>
      
      , <code>
        rescheduleGift
      </code>
      
      , <code>
        cancelGift
      </code>
      
      , <code>
        runGiftSweep
      </code>
      
      , <code>
        updateSubscription
      </code>
      
      , <code>
        cancelSubscription
      </code>
      
      , <code>
        getCancelFlow
      </code>
      
      , <code>
        acceptSaveOffer
      </code>
      
      , <code>
        getWithdrawal
      </code>
      
      , <code>
        withdraw
      </code>
      
      , <code>
        uncancelSubscription
      </code>
      
      , <code>
        cancelPendingChange
      </code>
      
      , <code>
        pauseSubscription
      </code>
      
      , <code>
        resumeSubscription
      </code>
      
      , <code>
        getOrders
      </code>
      
      , <code>
        getInvoiceUrl
      </code>
      
      , <code>
        getUsageHistory
      </code>
      
      , <code>
        refundOrder
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/email.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        email
      </code>
      
      , <code>
        getEmailStatus
      </code>
      
      , <code>
        previewEmails
      </code>
      
      , <code>
        sendEmailPreview
      </code>
      
      , <code>
        getEmailPreferences
      </code>
      
      , <code>
        setEmailTopic
      </code>
      
      , <code>
        unsubscribeAllTopics
      </code>
      
      , <code>
        getEmailLink
      </code>
      
      , <code>
        unsubscribeByLink
      </code>
      
      , <code>
        confirmEmailTopic
      </code>
      
      , <code>
        recordTimeZone
      </code>
      
      , <code>
        syncEmail
      </code>
      
      , <code>
        getAnnouncements
      </code>
      
      , <code>
        dismissAnnouncement
      </code>
      
      , <code>
        getAnnouncementsConsole
      </code>
      
      , <code>
        publishAnnouncement
      </code>
      
      , <code>
        endAnnouncement
      </code>
      
      , <code>
        previewAnnouncement
      </code>
      
      , <code>
        sendAnnouncement
      </code>
      
      , <code>
        cancelAnnouncement
      </code>
      
      , <code>
        getSuppressions
      </code>
      
      , <code>
        liftSuppression
      </code>
      
      , <code>
        send
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract">
        <code>
          function-contract
        </code>
      </a>
      
      : <code>
        getEmailStatus
      </code>
      
      , <code>
        previewEmails
      </code>
      
      , <code>
        sendEmailPreview
      </code>
      
      , <code>
        getEmailPreferences
      </code>
      
      , <code>
        setEmailTopic
      </code>
      
      , <code>
        unsubscribeAllTopics
      </code>
      
      , <code>
        getEmailLink
      </code>
      
      , <code>
        unsubscribeByLink
      </code>
      
      , <code>
        confirmEmailTopic
      </code>
      
      , <code>
        recordTimeZone
      </code>
      
      , <code>
        syncEmail
      </code>
      
      , <code>
        getAnnouncements
      </code>
      
      , <code>
        dismissAnnouncement
      </code>
      
      , <code>
        getAnnouncementsConsole
      </code>
      
      , <code>
        publishAnnouncement
      </code>
      
      , <code>
        endAnnouncement
      </code>
      
      , <code>
        previewAnnouncement
      </code>
      
      , <code>
        sendAnnouncement
      </code>
      
      , <code>
        cancelAnnouncement
      </code>
      
      , <code>
        getSuppressions
      </code>
      
      , <code>
        liftSuppression
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/rateLimiter.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        rateLimiter
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/workflows.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        workflow
      </code>
      
      , <code>
        onSignup
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/audit.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        audit
      </code>
      
      , <code>
        listActivity
      </code>
      
      , <code>
        listWorkspaceActivity
      </code>
      
      , <code>
        listAllActivity
      </code>
      
      , <code>
        getActivation
      </code>
      
      , <code>
        dismissActivation
      </code>
      
      , <code>
        getSource
      </code>
      
      , <code>
        recordSource
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract">
        <code>
          function-contract
        </code>
      </a>
      
      : <code>
        listActivity
      </code>
      
      , <code>
        listWorkspaceActivity
      </code>
      
      , <code>
        listAllActivity
      </code>
      
      , <code>
        getActivation
      </code>
      
      , <code>
        dismissActivation
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/notifications.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        notifications
      </code>
      
      , <code>
        listNotifications
      </code>
      
      , <code>
        getUnreadCount
      </code>
      
      , <code>
        markNotificationsRead
      </code>
      
      , <code>
        getNotificationChannels
      </code>
      
      , <code>
        setNotificationChannel
      </code>
      
      , <code>
        getPushConfig
      </code>
      
      , <code>
        subscribePush
      </code>
      
      , <code>
        unsubscribePush
      </code>
      
      , <code>
        deliverNotification
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract">
        <code>
          function-contract
        </code>
      </a>
      
      : <code>
        listNotifications
      </code>
      
      , <code>
        getUnreadCount
      </code>
      
      , <code>
        markNotificationsRead
      </code>
      
      , <code>
        getNotificationChannels
      </code>
      
      , <code>
        setNotificationChannel
      </code>
      
      , <code>
        getPushConfig
      </code>
      
      , <code>
        subscribePush
      </code>
      
      , <code>
        unsubscribePush
      </code>
      
      , <code>
        deliverNotification
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/account.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        account
      </code>
      
      , <code>
        exportAccountData
      </code>
      
      , <code>
        getAccountExport
      </code>
      
      , <code>
        eraseAccountData
      </code>
      
      , <code>
        getAccountDeletion
      </code>
      
      , <code>
        cancelAccountDeletion
      </code>
      
      , <code>
        getConsents
      </code>
      
      , <code>
        getConsentTerms
      </code>
      
      , <code>
        grantConsent
      </code>
      
      , <code>
        withdrawConsent
      </code>
      
      , <code>
        chooseStorage
      </code>
      
      , <code>
        getOnboarding
      </code>
      
      , <code>
        completeOnboarding
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract">
        <code>
          function-contract
        </code>
      </a>
      
      : <code>
        exportAccountData
      </code>
      
      , <code>
        getAccountExport
      </code>
      
      , <code>
        eraseAccountData
      </code>
      
      , <code>
        getConsents
      </code>
      
      , <code>
        getConsentTerms
      </code>
      
      , <code>
        grantConsent
      </code>
      
      , <code>
        withdrawConsent
      </code>
      
      , <code>
        chooseStorage
      </code>
      
      , <code>
        getAccountDeletion
      </code>
      
      , <code>
        cancelAccountDeletion
      </code>
      
      , <code>
        getOnboarding
      </code>
      
      , <code>
        completeOnboarding
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/admin.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        listUsers
      </code>
      
      , <code>
        getUser
      </code>
      
      , <code>
        listWorkspaces
      </code>
      
      , <code>
        getWorkspace
      </code>
      
      , <code>
        getFunnel
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract">
        <code>
          function-contract
        </code>
      </a>
      
      : <code>
        listUsers
      </code>
      
      , <code>
        getUser
      </code>
      
      , <code>
        listWorkspaces
      </code>
      
      , <code>
        getWorkspace
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/webhooks.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        webhooks
      </code>
      
      , <code>
        getWebhookDeliveries
      </code>
      
      , <code>
        replayWebhookDelivery
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract">
        <code>
          function-contract
        </code>
      </a>
      
      : <code>
        getWebhookDeliveries
      </code>
      
      , <code>
        replayWebhookDelivery
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/flags.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        flags
      </code>
      
      , <code>
        getFlags
      </code>
      
      , <code>
        listFlags
      </code>
      
      , <code>
        setFlag
      </code>
      
      , <code>
        exposeExperiment
      </code>
      
      , <code>
        getExperiments
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#function-contract">
        <code>
          function-contract
        </code>
      </a>
      
      : <code>
        getFlags
      </code>
      
      , <code>
        listFlags
      </code>
      
      , <code>
        setFlag
      </code>
      
      , <code>
        exposeExperiment
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/paths.generated.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        paths
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/brand.generated.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        brand
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/labels.generated.ts
      </code>
    </td>
    
    <td>
      Yours: written once, never overwritten without <code>
        --force
      </code>
    </td>
    
    <td>
      <code>
        labels
      </code>
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend/_generated/
      </code>
    </td>
    
    <td>
      The platform's codegen: <code>
        npx convex dev
      </code>
      
       (and <code>
        nuxt-backend dev
      </code>
      
      ) rewrites it
    </td>
    
    <td>
      none
    </td>
    
    <td>
      <code>
        convex-codegen
      </code>
      
       checks it exists
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        .env.example
      </code>
    </td>
    
    <td>
      Yours: <code>
        init
      </code>
      
       writes it once, <code>
        --force
      </code>
      
       rewrites it
    </td>
    
    <td>
      none
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AGENTS.md
      </code>
    </td>
    
    <td>
      Yours, but for the <code>
        nuxt-backend
      </code>
      
       section between its markers, which <code>
        init
      </code>
      
       keeps current
    </td>
    
    <td>
      none
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        .mcp.json
      </code>
    </td>
    
    <td>
      Yours: <code>
        init
      </code>
      
       adds the developer MCP server (<code>
        nuxt-backend
      </code>
      
      ) once
    </td>
    
    <td>
      none
    </td>
    
    <td>
      none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        .agents/skills/nuxt-backend*/
      </code>
    </td>
    
    <td>
      The package's: <code>
        init
      </code>
      
       copies the agent skills of the installed version, <code>
        init --agents
      </code>
      
       (or <code>
        --force
      </code>
      
      ) refreshes them; one the project's <code>
        skills-lock.json
      </code>
      
       lists is the skills CLI's
    </td>
    
    <td>
      none
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#agent-files">
        <code>
          agent-files
        </code>
      </a>
      
       checks they match the installed version
    </td>
  </tr>
</tbody>
</table>

[`init`](https://nuxt-backend.dev/docs/reference/cli#init) says what it writes outside the functions directory, and [Catalog files](https://nuxt-backend.dev/docs/reference/configuration/catalogs) gives the shape of `billing.catalog.ts` and `billing.generated.ts`.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
