Novel
Get NovelGuidesAPI Reference
Latest - 2025.1.0
Latest - 2025.1.0
  • Welcome to Novel
  • Start
  • Philosophy
  • Tech Stack
  • Releases
  • Versions
  • Changelog
  • License
  • Privacy
  • Warranty
  • Security Policy
  • Errors
    • Cannot start Novel
    • Unauthorized
    • Invalid Session
    • Validation Failed
  • Novel Server
    • Getting Started
    • Project Structure
    • With Novel Web
    • Configuration
    • Novel CLI
      • novel dev
      • novel start
      • novel new
    • Novel API
      • API Reference
    • Database
      • Caching
    • Migrations
    • Models
    • Routing
      • Route Directives
      • Middleware
      • Request Helpers
      • Schema
    • Sessions
    • Authentication
      • Passwords
      • Magic Links
      • Two-Factor Authentication
      • Forget Password
      • Email Verification
      • OAuth2 Support
    • Authorization
    • Users
    • Organizations
    • Subscriptions
    • Pricing
    • Validation
    • Mail
    • Notifications
    • API Keys
    • Events
    • Errors
    • Feature Flags
    • Uploading Files
    • Testing
    • Scheduled Cron Jobs
    • Background Jobs
    • Sockets
    • Logging
    • Telemetry
    • Deployment
  • Novel Web
    • Getting Started
    • Configuration
    • Project Structure
    • Routing
    • Layout and Styles
    • Authentication
    • Authorization
    • Requests
    • Request Files
    • Validation
    • Components
      • Button
      • Alerts
      • Copybox
      • Inline Notify
      • Input
      • Select
      • Toast
      • Toggle
      • Upload
      • Stripe Card
    • Hooks
      • useSession
      • useMobile
      • getSession
      • useFeature
      • useAuthorized
      • useNotification
      • useSocket
    • Localstorage
    • Errors
    • Internationalization (i18n)
    • Constants
    • Feature Flags
    • Testing
    • Telemetry
    • Deployment
    • Devtools (Alpha)
Powered by GitBook
On this page
  • Use with Anthropic
  • novel new api
  • novel new model
  • novel new task
  • Changelog

Was this helpful?

  1. Novel Server
  2. Novel CLI

novel new

Last updated 5 months ago

Was this helpful?

Provides scaffolding methods for easy feature development.

Use with Anthropic

It is possible to use Anthropic's Claude to create features for your instance. Novel scaffolding will make sure that the code generated will work within the Novel codebase.

You can get your Anthropic keys from the guide below

DISCLAIMER

It is important that you review the code that is generated by your scaffold before you commit and push to production.

Do your due diligence!

novel new api

This command will create an api endpoint for you and put it in /app/api. You can then modify and enrich this endpoint once its generated.

You can start by running

novel new api

You will be asked the following

  1. The identifier of this new api, this will be used for the function name in the api spec

  2. The path of this new api, it will be registered under the path you provide

  3. The HTTP method this api will respond with

  4. If the endpoint require authorization from a cookie session or api key. See Sessions

  5. If Anthropic is enabled: a prompt that describes what the endpoint should do. This generates the following: Implementation, API Spec, Helper, Test File.

  6. Your files are now available on the /app/api/identifier-in-step-1

novel new model

This command will create migrations for you that in turn, generate model files during development.

It will ask you multiple times until you tell it to stop.

You can start this by running

novel new model

You will be asked the following

  1. The name of the table you are creating

  2. The name of the column used as a primary key

  3. If Anthropic is enabled: a prompt that describes what the table should do.

  4. It will ask you if you want to add more tables

  5. Your files are now available on the /app/migrations

novel new task

This command creates a background job or a cron job based on your intent.

You can start this by running

novel new task

You will be asked the following

  1. The task identifier that is used to register this task

  2. If it is a cron job or not

    1. If it is a cron job, it will ask the schedule

  3. If Anthropic is enabled: a prompt that describes what the task should do.

  4. Your files are now available on the /app/tasks/id-of-the-task-in-step1

Changelog

  • 2024-12-20 - Initial Documentation

Getting Anthropic API Keys | Novel
Logo