
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@cogita/cli
Advanced tools
中文 | English
Command line interface for creating and managing Cogita blogs.
@cogita/cli provides a simple yet powerful set of commands to create, develop, and build Cogita blog projects. Get started in seconds with built-in templates and development tools.
# Using pnpm
pnpm add -g @cogita/cli
# Using npm
npm install -g @cogita/cli
# Using yarn
yarn global add @cogita/cli
npx @cogita/cli --help
# Interactive creation
cogita create
# Create with name
cogita create my-blog
# Create with template
cogita create my-blog --template minimal
# Start development server
cogita dev
# Custom port and host
cogita dev --port 8080 --host 0.0.0.0
# Build for production
cogita build
# Build to custom directory
cogita build --outDir dist
# Preview build result
cogita preview
cogita create [name]Create a new Cogita blog project.
Options:
-t, --template <name> - Template to use (default: "basic")-p, --package-manager <pm> - Package manager (npm|yarn|pnpm)--no-git - Skip Git initialization--no-install - Skip dependency installation-f, --force - Overwrite existing directoryTemplates:
basic - Full-featured blog template (default)minimal - Minimal setup with essential featurestech - Developer-focused template with code highlightingpersonal - Personal blog template with social integrationcogita devStart development server with hot reload.
Options:
-p, --port <port> - Port number (default: 3000)-h, --host <host> - Host address (default: "localhost")--open - Open browser automatically (default: true)--debug - Enable debug modecogita buildBuild static site for production.
Options:
-o, --outDir <dir> - Output directory (default: "dist")--base <base> - Base path for deployment--clean - Clean output directory before build--analyze - Analyze build outputcogita previewPreview the built site locally.
Options:
-p, --port <port> - Port number (default: 4173)--open - Open browser automatically# Create and start developing
cogita create my-blog
cd my-blog
cogita dev
# Build with correct base path
cogita build --base /my-blog/
# The built files are ready for GitHub Pages
# Use different port and enable debug
cogita dev --port 8080 --debug
# Build and analyze output
cogita build --analyze
Full-featured blog with:
Lightweight setup with:
Developer-oriented with:
Personal branding focus:
Create .cogitarc.json in your project:
{
"defaultTemplate": "tech",
"packageManager": "pnpm",
"devServer": {
"port": 3000,
"open": true
}
}
export COGITA_PACKAGE_MANAGER=pnpm
export COGITA_DEFAULT_TEMPLATE=minimal
export COGITA_DEBUG=true
# Use different port
cogita dev --port 3001
# Auto-select available port
cogita dev --port auto
# Clean build
cogita build --clean
# Debug build
cogita build --debug
# Force recreate
cogita create my-blog --force
# Skip automatic installation
cogita create my-blog --no-install
MIT © wu9o
FAQs
Command line interface for creating and managing Cogita blogs.
We found that @cogita/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.