---
title: "Cheat sheet"
description: "One page to scan: every composable, component, setup helper, CLI command, environment variable, error code and module option."
canonical_url: "https://nuxt-backend.dev/docs/reference/cheat-sheet"
---
# Cheat sheet

> One page to scan: every composable, component, setup helper, CLI command, environment variable, error code and module option.

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.

Every name the package gives you, on one page, so you find the right one without opening each tab. Each name links to the page that explains it, and a coding agent reads the Markdown twin of this page as its lookup. The composables, setup helpers, commands, variables and error codes are generated from the registries; the components and the module options follow them.

Every composable and component is auto-imported in your app, and every composable follows the [composable conventions](https://nuxt-backend.dev/docs/reference/nuxt/conventions). Your `backend/` files call each setup helper once: `setupX(components, options)` wires an integration and returns `{ ...helpers, api }` (except `setupRateLimiter`, which returns the `RateLimiter` itself), and `defineX(...)` declares data.

## Composables

<table>
<thead>
  <tr>
    <th>
      Composable
    </th>
    
    <th>
      Returns
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        useAuth
      </code>
    </td>
    
    <td>
      <code>
        { user, session, role, hasRole, isSignedIn, isReady, isLoading, impersonating, signOut }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useConnectionState
      </code>
    </td>
    
    <td>
      —
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useBackendClient
      </code>
    </td>
    
    <td>
      —
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useLoginFlow
      </code>
    </td>
    
    <td>
      <code>
        { step, lastMethod, webAuthnSupported, email, otp, recoveryCode, inviteCode, age, waitlist, twoFactorCode, withBackupCode, trustDevice, passkeyRequired, isPending, error, retryAfter, emailValid, signInWithPasskey, sendCode, verifyCode, verifyTwoFactor, redeemInviteCode, submitAge, addPasskey, skipPasskey, recover, goTo, bind, reset }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useEmailChange
      </code>
    </td>
    
    <td>
      <code>
        { step, newEmail, otp, isPending, error, retryAfter, emailValid, start, confirmCurrent, verifyNew, reset }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useWorkspace
      </code>
    </td>
    
    <td>
      <code>
        { workspaces, current, member, role, members, invitations, isLoading, isPending, error, setActive, create, rename, invite, leave, updateMemberRole, removeMember, acceptInvitation, declineInvitation, cancelInvitation, getInvitation, listReceivedInvitations }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useSearch
      </code>
    </td>
    
    <td>
      <code>
        { results, isLoading, error, term }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useBilling
      </code>
    </td>
    
    <td>
      <code>
        { products, productsError, subscription, subscriptions, plan, isSubscribed, isFree, pass, isLoading, isPending, canManage, saveOffers, softOptIn, error, status, cancelAtPeriodEnd, resumesAt, trialEnd, isTrialing, isPaused, isPastDue, isFinishingCheckout, pendingChange, changeOf, checkout, portal, changePlan, cancel, acceptOffer, uncancel, cancelPendingChange, pause, resume }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useFeatures
      </code>
    </td>
    
    <td>
      <code>
        { plans, benefits, quotas, isLoading, error, has, hasPlan, quota, remaining }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useCredits
      </code>
    </td>
    
    <td>
      <code>
        { balance, credited, consumed, overage, cycle, expiresAtCycleEnd, meterId, unit, isLoading, isPending, error, topUp, refresh }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        usePricing
      </code>
    </td>
    
    <td>
      <code>
        { plans, packs, intervals, currency, currencies, promotion, activePromotion, requested, successUrlFor, launched, welcome, setCurrency, isLoading, error, packFor, refresh, checkout, structuredData, interval, setInterval, pending, bind }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        usePlanChange
      </code>
    </td>
    
    <td>
      <code>
        { targets, targetFor, scheduledFor, target, preview, applies, title, when, open, close, confirm, switchTo, isLoading, isPending, error }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useBillingSection
      </code>
    </td>
    
    <td>
      <code>
        { state, isLoading, isPending, error, actions, switchable, pausable, cancellable, pauseLengths, resumesAfter, pause, keepGifted, change }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useCampaign
      </code>
    </td>
    
    <td>
      <code>
        { discountCode, attribution, checkoutOptions }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useOrders
      </code>
    </td>
    
    <td>
      <code>
        { orders, page, total, pageCount, hasMore, hasPrevious, isLoading, isPending, error, refresh, next, previous, goTo, invoice }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useUsage
      </code>
    </td>
    
    <td>
      <code>
        { events, page, total, pageCount, units, hasMore, hasPrevious, isLoading, error, refresh, next, previous, goTo }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useGifts
      </code>
    </td>
    
    <td>
      <code>
        { received, unclaimed, sent, isLoading, isPending, error, send, claim, resend, changeRecipient, reschedule, cancel }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useGiftList
      </code>
    </td>
    
    <td>
      <code>
        { state, received, sent, workspaces, target, error, announcement, busy, claim, resend, changeRecipient, reschedule, firstDay, lastDay, cancel, labels }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useGiftForm
      </code>
    </td>
    
    <td>
      <code>
        { kind, kinds, packs, plans, pack, plan, months, lengths, recipientEmail, message, deliverOn, firstDay, lastDay, choice, isSignedIn, isLoading, isPending, error, invalidField, sent, send }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useWithdrawal
      </code>
    </td>
    
    <td>
      <code>
        { period, isOpen, endsAt, isLoading, isPending, error, withdrawnAt, withdraw }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useReferrals
      </code>
    </td>
    
    <td>
      <code>
        { code, link, shareText, program, referrals, sharePages, isLoading, isPending, error, canShare, copied, copy, share, setSharePages }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useReferralInvite
      </code>
    </td>
    
    <td>
      <code>
        { code, state, preview, isLoading, isPending, signInTo, inviteTo, closed, claim, error }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useReferralAdmin
      </code>
    </td>
    
    <td>
      <code>
        { console, isLoading, isRefused, isPending, error, resolve }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        usePasskeys
      </code>
    </td>
    
    <td>
      <code>
        { passkeys, isLoading, isPending, error, refresh, add, rename, remove, capabilities, passkeyOnly, setPasskeyOnly }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useTwoFactor
      </code>
    </td>
    
    <td>
      <code>
        { enabled, pendingSetup, isPending, error, start, confirm, disable, regenerateBackupCodes }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useRoomPresence
      </code>
    </td>
    
    <td>
      <code>
        { members, others, ready }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useSessions
      </code>
    </td>
    
    <td>
      <code>
        { sessions, current, isLoading, isPending, error, listError, revoke, revokeOthers }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useSignInAlerts
      </code>
    </td>
    
    <td>
      <code>
        { alerts, isLoading, isPending, error, device, date, sentence, sessionOf, canSignOut, signOut, status, labels, bind }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useReauthentication
      </code>
    </td>
    
    <td>
      <code>
        { isRequired, step, email, otp, isPending, error, retryAfter, withPasskey, sendCode, verifyCode, back, cancel, reauthenticate, withReauthentication }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAuditLog
      </code>
    </td>
    
    <td>
      <code>
        { events, page, hasMore, hasPrevious, isLoading, isRefused, error, next, previous, reset }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAccount
      </code>
    </td>
    
    <td>
      <code>
        { latestExport, exportsLeft, confirmation, isLoading, deletion, isPending, error, updateProfile, exportData, deleteAccount, cancelDeletion }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useConsents
      </code>
    </td>
    
    <td>
      <code>
        { consents, missing, terms, minimumAge, asks, grant, withdraw, isPending, error, storage, allowStorage, isAsking }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAdmin
      </code>
    </td>
    
    <td>
      <code>
        { users, workspaces, page, hasMore, hasPrevious, user, workspace, isLoading, isRefused, isPending, error, next, previous, reset, setRole, ban, unban, allowSignInCodes, revokeSessions, impersonate, stopImpersonating }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useFlag
      </code>
    </td>
    
    <td>
      <code>
        { isEnabled, isLoading, error }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useFlagAdmin
      </code>
    </td>
    
    <td>
      <code>
        { flags, isLoading, isRefused, isPending, error, setFlag }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAccessPhase
      </code>
    </td>
    
    <td>
      <code>
        { phase, isPublic, isLoading, error }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useInvite
      </code>
    </td>
    
    <td>
      <code>
        { check, status, isPending, error, isKept, forget, linkChecked, asked, referral, signInTo }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useMemberTicket
      </code>
    </td>
    
    <td>
      <code>
        { ticket, link, issue, isLoading, isPending, error }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAccessAdmin
      </code>
    </td>
    
    <td>
      <code>
        { console, isLoading, isRefused, isPending, error, setPhase, createInvite, revoke, admit }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useWaitlist
      </code>
    </td>
    
    <td>
      <code>
        { step, questions, email, answers, launchNews, code, ref, dropReferral, place, shareLink, isLoading, linkChecked, left, signedIn, join, verify, status, leave, back, isPending, error, retryAfter, bind }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useWaitlistAdmin
      </code>
    </td>
    
    <td>
      <code>
        { console, isLoading, isRefused, isPending, error, admit, decline, note, caps, plan }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useShareLink
      </code>
    </td>
    
    <td>
      <code>
        { shared, sharedAt, url, isLoading, isPending, error, enable, revoke }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useUploadField
      </code>
    </td>
    
    <td>
      <code>
        { state, file, progress, storageId, error, announcement, pick, retry, cancel, open, labels, bind }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useNotifications
      </code>
    </td>
    
    <td>
      <code>
        { items, unreadCount, hasMoreUnread, isSignedIn, hasInbox, isLoading, isPending, isLoadingMore, canLoadMore, error, markRead, markAllRead, loadMore }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useNotificationInbox
      </code>
    </td>
    
    <td>
      <code>
        { notifications, state, open, bellName, countText, follow, labels, bind }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useEmailPreferences
      </code>
    </td>
    
    <td>
      <code>
        { topics, channels, isLoading, isPending, error, set, unsubscribeAll }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useEmailLink
      </code>
    </td>
    
    <td>
      <code>
        { state, link, topicName, isLoading, isPending, error, announcement, leave, confirm, labels }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        usePushSubscription
      </code>
    </td>
    
    <td>
      <code>
        { isSupported, isSubscribed, permission, needsInstall, isPending, error, subscribe, unsubscribe }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useInstallPrompt
      </code>
    </td>
    
    <td>
      <code>
        { canInstall, installed, needsShareMenu, prompt }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAnnouncements
      </code>
    </td>
    
    <td>
      <code>
        { announcements, isPending, error, dismiss, linkOf }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAnnouncementsAdmin
      </code>
    </td>
    
    <td>
      <code>
        { console, announcements, isLoading, isRefused, isPending, error, publish, end, preview, send, cancel }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useContactForm
      </code>
    </td>
    
    <td>
      <code>
        { state, isPending, signedIn, name, email, message, website, count, error, errorField, retryAfter, send, reset, announcement, labels, bind }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useReportForm
      </code>
    </td>
    
    <td>
      <code>
        { mode, state, isPending, signedIn, isLoading, reasons, reason, details, url, name, email, goodFaith, signature, website, contactRequired, signatureRequired, error, errorField, retryAfter, noticePath, send, reset, announcement, labels, bind }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useReportAppeal
      </code>
    </td>
    
    <td>
      <code>
        { token, state, decision, text, isPending, error, send, formatDate, labels }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useOnboarding
      </code>
    </td>
    
    <td>
      <code>
        { steps, step, index, total, isFirst, isLast, onboardedAt, isOnboarded, isDone, isLoading, isPending, error, stepName, next, skip, back, goTo, finish, announcement, labels }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useActivation
      </code>
    </td>
    
    <td>
      <code>
        { tasks, done, total, progress, isComplete, isDismissed, readOnly, isVisible, isLoading, isPending, error, dismiss, labels, bind }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useExperiment
      </code>
    </td>
    
    <td>
      <code>
        { variant, isLoading }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAppShell
      </code>
    </td>
    
    <td>
      <code>
        { isSignedIn, isLoading, account, login, switcher, mainId, labels }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useInboxAdmin
      </code>
    </td>
    
    <td>
      <code>
        { console, isLoading, isRefused, isPending, error, reply }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useBackendConfig
      </code>
    </td>
    
    <td>
      —
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useLabels
      </code>
    </td>
    
    <td>
      <code>
        { t, rich, errorMessage, lookup, locale }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useBackendPagePath
      </code>
    </td>
    
    <td>
      —
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useReturnPath
      </code>
    </td>
    
    <td>
      —
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useEmailStatus
      </code>
    </td>
    
    <td>
      <code>
        { data, status, isLoading, error, isDelivered, isFailed }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useSandboxInbox
      </code>
    </td>
    
    <td>
      <code>
        { messages, latest, code, isLoading, error }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useWorkflowStatus
      </code>
    </td>
    
    <td>
      <code>
        { data, isLoading, error }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAiStream
      </code>
    </td>
    
    <td>
      <code>
        { text, status, isStreaming, isPending, streamId, error, start, stop }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useJob
      </code>
    </td>
    
    <td>
      <code>
        { status, waitingOn, position, estimatedWait, progress, result, provenance, error, canCancel, cancel }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useAiLabel
      </code>
    </td>
    
    <td>
      <code>
        { hasDetails, models, madeOn, verifyHref, labels, bind }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useChat
      </code>
    </td>
    
    <td>
      <code>
        { threads, threadId, messages, send, newThread, remove, loadMore, canLoadMore, status, error }
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        useHumanCheck
      </code>
    </td>
    
    <td>
      <code>
        { mode, isPending, error, token }
      </code>
    </td>
  </tr>
</tbody>
</table>

## Setup helpers

<table>
<thead>
  <tr>
    <th>
      Helper
    </th>
    
    <th>
      Import
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        setupAuth
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/auth
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        registerBackendRoutes
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/http
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        createFunctions
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/functions
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineRetention
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/functions
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        createCommerceProvider
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        createCommerceWebhookHandler
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineBillingCatalog
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupBilling
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupReferrals
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/billing
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupEmail
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/email
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupPresence
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/presence
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupRateLimiter
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/rate-limit
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineSearch
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/search
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineActivation
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/audit
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAudit
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/audit
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAccess
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/access
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupWaitlist
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/access
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAccount
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/account
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAdmin
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/admin
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupWebhooks
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/admin
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineFlags
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/flags
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupFlags
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/flags
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineEmailSequence
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/workflows
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupWorkflows
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/workflows
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineJobQueue
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/ai
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupAi
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/ai
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupStorage
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/storage
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        setupNotifications
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/notifications
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        defineBackendAuthConfig
      </code>
    </td>
    
    <td>
      <code>
        nuxt-backend/auth.config
      </code>
    </td>
  </tr>
</tbody>
</table>

## CLI

<table>
<thead>
  <tr>
    <th>
      Command
    </th>
    
    <th>
      Flags
    </th>
    
    <th>
      May change
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#init">
        <code>
          nuxt-backend init
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --force
      </code>
      
      , <code>
        --agents
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes project files
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#dev">
        <code>
          nuxt-backend dev
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --anonymous
      </code>
    </td>
    
    <td>
      writes project files; writes the dev deployment
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#doctor">
        <code>
          nuxt-backend doctor
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --json
      </code>
      
      , <code>
        --fix
      </code>
      
      , <code>
        --yes
      </code>
      
      , <code>
        --prod
      </code>
      
      , <code>
        --only
      </code>
    </td>
    
    <td>
      reads only; --fix: writes project files, writes the dev deployment, writes provider accounts; --fix --prod: writes project files, writes production, writes provider accounts
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#status">
        <code>
          nuxt-backend status
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --json
      </code>
      
      , <code>
        --prod
      </code>
    </td>
    
    <td>
      reads only
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#env-push">
        <code>
          nuxt-backend env push
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --prod
      </code>
      
      , <code>
        --preview
      </code>
      
      , <code>
        --defaults
      </code>
      
      , <code>
        --site-url
      </code>
      
      , <code>
        --dry-run
      </code>
      
      , <code>
        --force
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes the dev deployment; --prod: writes production; --preview: writes a preview deployment; --defaults: writes project env defaults; --dry-run: reads only
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#env-rotate">
        <code>
          nuxt-backend env rotate
        </code>
      </a>
    </td>
    
    <td>
      <code>
        <name>
      </code>
      
      , <code>
        --prod
      </code>
      
      , <code>
        --dry-run
      </code>
      
      , <code>
        --retire
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes the dev deployment; writes provider accounts; --prod: writes production; --dry-run: reads only
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#billing-sync">
        <code>
          nuxt-backend billing sync
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --env
      </code>
      
      , <code>
        --dry-run
      </code>
      
      , <code>
        --webhook
      </code>
      
      , <code>
        --force
      </code>
      
      , <code>
        --adopt
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes provider accounts; writes project files; writes the dev deployment; writes production
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#billing-reset">
        <code>
          nuxt-backend billing reset
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --json
      </code>
    </td>
    
    <td>
      writes provider accounts; writes project files; writes the dev deployment
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#billing-resync">
        <code>
          nuxt-backend billing resync
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --prod
      </code>
      
      , <code>
        --entity
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes the dev deployment; --prod: writes production
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#access-admit">
        <code>
          nuxt-backend access admit
        </code>
      </a>
    </td>
    
    <td>
      <code>
        <email>
      </code>
      
      , <code>
        --prod
      </code>
      
      , <code>
        --label
      </code>
      
      , <code>
        --days
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes the dev deployment; --prod: writes production
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#email-sync">
        <code>
          nuxt-backend email sync
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --prod
      </code>
      
      , <code>
        --dry-run
      </code>
      
      , <code>
        --webhook
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes provider accounts; writes the dev deployment; writes production
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#inbox">
        <code>
          nuxt-backend inbox
        </code>
      </a>
    </td>
    
    <td>
      <code>
        [address]
      </code>
      
      , <code>
        --json
      </code>
      
      , <code>
        --prod
      </code>
    </td>
    
    <td>
      reads only
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#upgrade">
        <code>
          nuxt-backend upgrade
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --dry-run
      </code>
      
      , <code>
        --diff
      </code>
      
      , <code>
        --prod
      </code>
      
      , <code>
        --yes
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes project files; writes the dev deployment; --dry-run: reads only; --diff: reads only; --prod --yes: writes project files, writes production
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#eject">
        <code>
          nuxt-backend eject
        </code>
      </a>
    </td>
    
    <td>
      <code>
        [target]
      </code>
      
      , <code>
        --list
      </code>
      
      , <code>
        --force
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes project files; --list: reads only
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#deploy">
        <code>
          nuxt-backend deploy
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --dry-run
      </code>
      
      , <code>
        --sandbox
      </code>
      
      , <code>
        --build
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      writes production; writes provider accounts; writes project files; --dry-run: reads only; --build: writes production, writes a preview deployment
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#analyze">
        <code>
          nuxt-backend analyze
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --only
      </code>
      
      , <code>
        --max-convex
      </code>
      
      , <code>
        --max-client
      </code>
      
      , <code>
        --max-server
      </code>
      
      , <code>
        --json
      </code>
    </td>
    
    <td>
      reads only
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli#mcp">
        <code>
          nuxt-backend mcp
        </code>
      </a>
    </td>
    
    <td>
      <code>
        --prod
      </code>
    </td>
    
    <td>
      writes the dev deployment; writes provider accounts; --prod: reads only
    </td>
  </tr>
</tbody>
</table>

## Environment variables

<table>
<thead>
  <tr>
    <th>
      Variable
    </th>
    
    <th>
      Read on
    </th>
    
    <th>
      Required
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        AUTH_SECRET
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      yes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        SITE_URL
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      yes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BACKEND_ENVIRONMENT
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        EMAIL_API_KEY
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        EMAIL_FROM
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        EMAIL_MARKETING_FROM
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        EMAIL_REGION
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        EMAIL_WEBHOOK_SECRET
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        EMAIL_DEV_INBOX
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BILLING_PROVIDER
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BILLING_ACCESS_TOKEN
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BILLING_WEBHOOK_SECRET
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AI_GATEWAY_API_KEY
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        CONTENT_SAFETY_ENDPOINT
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        CONTENT_SAFETY_KEY
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        SECOND_OPINION_KEY
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        KNOWN_ABUSE_KEY
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PROVENANCE_PRIVATE_KEY
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PROVENANCE_CERTIFICATE
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PUSH_PUBLIC_KEY
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PUSH_PRIVATE_KEY
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PROTECTION_PROOF_SECRET
      </code>
    </td>
    
    <td>
      both
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PROTECTION_CHALLENGE_SECRET_KEY
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MONITORING_DSN
      </code>
    </td>
    
    <td>
      deployment
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        NUXT_PUBLIC_BACKEND_URL
      </code>
    </td>
    
    <td>
      app
    </td>
    
    <td>
      no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY
      </code>
    </td>
    
    <td>
      app
    </td>
    
    <td>
      no
    </td>
  </tr>
</tbody>
</table>

## Error codes

<table>
<thead>
  <tr>
    <th>
      Code
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Label
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#unauthenticated">
        <code>
          unauthenticated
        </code>
      </a>
    </td>
    
    <td>
      401
    </td>
    
    <td>
      Sign in to continue.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#forbidden">
        <code>
          forbidden
        </code>
      </a>
    </td>
    
    <td>
      403
    </td>
    
    <td>
      You don't have access to this.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#reauthentication_required">
        <code>
          reauthentication_required
        </code>
      </a>
    </td>
    
    <td>
      403
    </td>
    
    <td>
      Confirm it's you to continue: this needs a recent sign-in.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#no_workspace">
        <code>
          no_workspace
        </code>
      </a>
    </td>
    
    <td>
      409
    </td>
    
    <td>
      Create or choose a workspace first.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#rate_limited">
        <code>
          rate_limited
        </code>
      </a>
    </td>
    
    <td>
      429
    </td>
    
    <td>
      Too many requests. Try again in a moment.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#insufficient_credits">
        <code>
          insufficient_credits
        </code>
      </a>
    </td>
    
    <td>
      402
    </td>
    
    <td>
      Not enough credits. Top up to continue.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#feature_required">
        <code>
          feature_required
        </code>
      </a>
    </td>
    
    <td>
      402
    </td>
    
    <td>
      Your plan doesn't include this. Upgrade to use it.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#quota_exceeded">
        <code>
          quota_exceeded
        </code>
      </a>
    </td>
    
    <td>
      402
    </td>
    
    <td>
      Your plan's limit is reached. Upgrade for more.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#invalid_input">
        <code>
          invalid_input
        </code>
      </a>
    </td>
    
    <td>
      400
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#not_ready">
        <code>
          not_ready
        </code>
      </a>
    </td>
    
    <td>
      409
    </td>
    
    <td>
      Nothing to show yet.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/backend/errors#unavailable">
        <code>
          unavailable
        </code>
      </a>
    </td>
    
    <td>
      503
    </td>
    
    <td>
      This isn't available right now. Try again shortly.
    </td>
  </tr>
</tbody>
</table>

## Components by area

<table>
<thead>
  <tr>
    <th>
      Area
    </th>
    
    <th>
      Component
    </th>
    
    <th>
      What it is
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Shell
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/shell#gate">
        <code>
          <Gate>
        </code>
      </a>
    </td>
    
    <td>
      Renders its slot by <code>
        signed-in
      </code>
      
      , <code>
        role
      </code>
      
      , <code>
        workspace
      </code>
      
      , <code>
        feature
      </code>
      
       or <code>
        quota
      </code>
      
      , else <code>
        #fallback
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/shell#backendnotices">
        <code>
          <BackendNotices>
        </code>
      </a>
    </td>
    
    <td>
      One region for every app-wide notice, each overridable by a named slot
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/shell#appshell">
        <code>
          <AppShell>
        </code>
      </a>
    </td>
    
    <td>
      The app's frame: header, navigation and notices
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/shell#notificationinbox">
        <code>
          <NotificationInbox>
        </code>
      </a>
    </td>
    
    <td>
      The in-app notifications
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/shell#accessdenied">
        <code>
          <AccessDenied>
        </code>
      </a>
    </td>
    
    <td>
      The page guard's 403
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/shell#connectionstatus">
        <code>
          <ConnectionStatus>
        </code>
      </a>
    </td>
    
    <td>
      Says when the live connection drops
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/shell#ailabel">
        <code>
          <AiLabel>
        </code>
      </a>
    </td>
    
    <td>
      The visible "AI-generated" label
    </td>
  </tr>
  
  <tr>
    <td>
      Sign-in and account
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#authform">
        <code>
          <AuthForm>
        </code>
      </a>
    </td>
    
    <td>
      The sign-in form
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#waitlistform">
        <code>
          <WaitlistForm>
        </code>
      </a>
    </td>
    
    <td>
      Joining the waitlist
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#reauthenticatedialog">
        <code>
          <ReauthenticateDialog>
        </code>
      </a>
    </td>
    
    <td>
      The recent sign-in dialog
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#profilesettings">
        <code>
          <ProfileSettings>
        </code>
      </a>
    </td>
    
    <td>
      The name and the address
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#securitysettings">
        <code>
          <SecuritySettings>
        </code>
      </a>
    </td>
    
    <td>
      Passkeys, sessions and account deletion
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#consentprompt">
        <code>
          <ConsentPrompt>
        </code>
      </a>
    </td>
    
    <td>
      Asks for a consent, such as the terms, and the consent manager's question
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#onboardingflow">
        <code>
          <OnboardingFlow>
        </code>
      </a>
    </td>
    
    <td>
      The onboarding steps on <code>
        /welcome
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#activationchecklist">
        <code>
          <ActivationChecklist>
        </code>
      </a>
    </td>
    
    <td>
      The first tasks, with progress
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#howdidyouhear">
        <code>
          <HowDidYouHear>
        </code>
      </a>
    </td>
    
    <td>
      One optional question after sign-up
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/account#accountdata">
        <code>
          <AccountData>
        </code>
      </a>
    </td>
    
    <td>
      Export and deletion, with the grace period
    </td>
  </tr>
  
  <tr>
    <td>
      Workspaces and admin
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/workspaces#workspacesettings">
        <code>
          <WorkspaceSettings>
        </code>
      </a>
    </td>
    
    <td>
      The workspace, its members, plan and credits
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/workspaces#acceptinvitation">
        <code>
          <AcceptInvitation>
        </code>
      </a>
    </td>
    
    <td>
      Accepting a workspace invitation
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/workspaces#auditlog">
        <code>
          <AuditLog>
        </code>
      </a>
    </td>
    
    <td>
      The activity trail
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/workspaces#adminusers">
        <code>
          <AdminUsers>
        </code>
      </a>
    </td>
    
    <td>
      Every account, for an administrator
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/workspaces#adminworkspaces">
        <code>
          <AdminWorkspaces>
        </code>
      </a>
    </td>
    
    <td>
      Every workspace, for an administrator
    </td>
  </tr>
  
  <tr>
    <td>
      Billing
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/billing#pricingtable">
        <code>
          <PricingTable>
        </code>
      </a>
    </td>
    
    <td>
      Plans and packs, with checkout
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/billing#billingcheckoutlink">
        <code>
          <BillingCheckoutLink>
        </code>
      </a>
    </td>
    
    <td>
      A link to checkout
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/billing#billingportallink">
        <code>
          <BillingPortalLink>
        </code>
      </a>
    </td>
    
    <td>
      A link to the billing portal
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/billing#billinghistory">
        <code>
          <BillingHistory>
        </code>
      </a>
    </td>
    
    <td>
      Past charges and invoices
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/billing#usagehistory">
        <code>
          <UsageHistory>
        </code>
      </a>
    </td>
    
    <td>
      Metered usage
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/billing#upgradeprompt">
        <code>
          <UpgradePrompt>
        </code>
      </a>
    </td>
    
    <td>
      What a plan includes, and the way to it
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/billing#cancelflow">
        <code>
          <CancelFlow>
        </code>
      </a>
    </td>
    
    <td>
      One question, one save offer, then the cancellation
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/billing#withdrawalbutton">
        <code>
          <WithdrawalButton>
        </code>
      </a>
    </td>
    
    <td>
      The EU withdrawal button, with its confirm step
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/billing#referralcard">
        <code>
          <ReferralCard>
        </code>
      </a>
    </td>
    
    <td>
      A person's referral link, with copy and share buttons and the reward disclosed
    </td>
  </tr>
  
  <tr>
    <td>
      Forms
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/forms#uploadfield">
        <code>
          <UploadField>
        </code>
      </a>
    </td>
    
    <td>
      A checked upload with progress
    </td>
  </tr>
  
  <tr>
    <td>
      
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/components/forms#contactform">
        <code>
          <ContactForm>
        </code>
      </a>
    </td>
    
    <td>
      A contact or feedback form
    </td>
  </tr>
  
  <tr>
    <td>
      Base module
    </td>
    
    <td>
      <code>
        <StorageImage>
      </code>
    </td>
    
    <td>
      An image from file storage
    </td>
  </tr>
</tbody>
</table>

[Components](https://nuxt-backend.dev/docs/reference/components) has the contract each one keeps.

## Other imports

Beside the setup helpers, `nuxt-backend/functions` exports `backendError`, `getBackendError`, `BACKEND_ERRORS`, `verifyHuman` and the token helpers `sha256Hex`, `randomToken` and `normalizeEmail`; `nuxt-backend/app` exports `backendEnv`, the env contract `convex.config.ts` passes to `defineApp`; `nuxt-backend/rate-limit` exports `DEFAULT_LIMITS`; and `nuxt-backend/monitoring` exports `reportError` and `checkIn` ([Package entrypoints](https://nuxt-backend.dev/docs/reference/entrypoints)). In `server/`, `backendAuth` is auto-imported ([Server utilities](https://nuxt-backend.dev/docs/reference/nuxt/server-utilities)).

`BACKEND_ENVIRONMENT` takes `development`, `preview`, `sandbox` or `production`. [Environment variables](https://nuxt-backend.dev/docs/reference/configuration/environment-variables) has each variable.

## Module options and page rules

The `backend` key in `nuxt.config.ts` takes six options: `url`, `authRoute`, `pages` (a path moves a page, `false` turns it off), `redirects`, `devtools` and `css` (`false` loads no package CSS) ([Module options](https://nuxt-backend.dev/docs/reference/configuration/module-options)). A page guards itself with `definePageMeta({ auth: true })`, or with an `auth` object of these rules:

<table>
<thead>
  <tr>
    <th>
      Rule
    </th>
    
    <th>
      Lets the page render when
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        role
      </code>
    </td>
    
    <td>
      The signed-in account has this app-wide role
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        workspace
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
      
      : the session has an active workspace. A role or a list of roles: the caller holds one of them in it
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        feature
      </code>
    </td>
    
    <td>
      The workspace's plan includes this feature
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        hidden
      </code>
    </td>
    
    <td>
      Set to <code>
        true
      </code>
      
      : a refusal answers 404 instead of the access-denied page
    </td>
  </tr>
</tbody>
</table>


## Sitemap

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