🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@unbloque/blog-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unbloque/blog-cli

CLI for installing and managing UnBloque blog

latest
Source
npmnpm
Version
0.1.6
Version published
Maintainers
1
Created
Source

@unbloque/blog-cli

Command-line tool for installing and managing UnBloque blog in your Next.js projects.

Installation

# Run directly with npx (recommended)
npx @unbloque/blog-cli init

# Or install globally
npm install -g @unbloque/blog-cli
unbloque-blog init

Commands

init

Initialize UnBloque blog in your Next.js project.

npx @unbloque/blog-cli init

Interactive prompts will guide you through:

  • Database adapter selection (Supabase, MongoDB, Neon, or Memory)
  • Admin password setup
  • Session secret generation
  • Component installation

update

Update blog components to the latest version.

npx @unbloque/blog-cli update

Safely updates components while preserving your customizations.

diff

See what changed between versions.

npx @unbloque/blog-cli diff

What Gets Installed

  • Blog pages - Public blog listing and article detail pages
  • Admin dashboard - Protected admin panel for content management
  • API routes - RESTful API for blog operations
  • Components - Rich text editor, post list, and UI components
  • Database adapter - Configured for your chosen database
  • Authentication - Secure admin login system

Configuration

After installation, you can configure your blog in lib/blog-config.ts:

import { BlogService, SupabaseAdapter } from '@unbloque/blog-core'

const adapter = new SupabaseAdapter(
  process.env.NEXT_PUBLIC_SUPABASE_URL!,
  process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
)

export const blogService = new BlogService(adapter)

Environment Variables

The CLI will create a .env.local file with:

ADMIN_PASSWORD=your-secure-password
SESSION_SECRET=auto-generated-secret

Add your database credentials based on the adapter you chose.

License

MIT

Keywords

blog

FAQs

Package last updated on 04 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts