Skip to content

feat(enable): add cmd to enable features #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jpsc
Copy link

@jpsc jpsc commented May 14, 2025

Overview

This PR adds a new enable|disable command to the NuxtHub CLI that allows users to easily enable/disable specific NuxtHub features in their Nuxt projects.

closes #25

Features

  • Added enable|disable command to activate/deactivate NuxtHub features by modifying the project's nuxt.config.js file
  • Supports various features: ai, autorag, blob, browser, cache, database, kv, openapi, realtime, vectorize
  • Handles both creating a new config file and updating an existing one
  • Provides helpful documentation links after enabling a feature
  • Includes special handling for features requiring additional configuration
  • Updated docs

Usage

nuxthub enable <feature>
nuxthub disable <feature>

asciicast

@jpsc
Copy link
Author

jpsc commented May 14, 2025

I was thinking and this could also make sense as a multi select prompt where you can add or remove the features.

Let me know if that makes more sense

@atinux atinux requested a review from RihanArfan June 10, 2025 10:37
@atinux
Copy link
Collaborator

atinux commented Jul 16, 2025

Thank you for making this PR ans very sorry for the delay.

I will keep it open as we are now thinking of an agnostic approach, so potentially the config might change to:

export default defineNuxtConfig({
  hub: {
    database: 'postgres',
    // or
    database: {
      provider: 'postgres',
      url: '...'
    }
  }
})

@atinux atinux added the enhancement New feature or request label Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nuxthub enable|disable <feature>
2 participants