
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@better-tables/cli
Advanced tools
Command-line utilities for Better Tables. Execute commands directly without installation using pnpm dlx, npx, or bunx.
# Open main documentation
pnpm dlx @better-tables/cli docs
npx @better-tables/cli docs
bunx --bun @better-tables/cli docs
# Open specific package documentation
pnpm dlx @better-tables/cli docs core # Core package docs
pnpm dlx @better-tables/cli docs ui # UI package docs
pnpm dlx @better-tables/cli docs drizzle # Drizzle adapter docs
docs [type] - Open documentation in browser
type: Optional. One of: main, core, ui, drizzle (default: main)init - Initialize Better Tables in your project
--cwd <path>: Working directory (default: current directory)--skip-shadcn: Skip shadcn component installation-y, --yes: Skip confirmation prompts# Open main README
pnpm dlx @better-tables/cli docs
# Open core package documentation
npx @better-tables/cli docs core
# Open UI package documentation
bunx --bun @better-tables/cli docs ui
# Open Drizzle adapter documentation
pnpm dlx @better-tables/cli docs drizzle
# Initialize Better Tables in your project
pnpm dlx @better-tables/cli init
# Initialize with custom working directory
npx @better-tables/cli init --cwd ./my-project
# Initialize without shadcn component installation
bunx --bun @better-tables/cli init --skip-shadcn
# Initialize without prompts (non-interactive)
pnpm dlx @better-tables/cli init -y
If you prefer to install globally:
npm install -g @better-tables/cli
# Then use: better-tables docs
# Or: better-tables init
The init command helps you set up Better Tables in your project:
components.json configurationnpx shadcn@latest init)The init command copies the following files to your project:
{components}/table/*{components}/filters/*{hooks}/* or {components}/hooks/*{components}/stores/*{lib}/utils/*{lib}/*All import paths are automatically transformed to match your components.json alias configuration.
After running init, you'll need to:
Install peer dependencies:
npm install @better-tables/core zustand @dnd-kit/core @dnd-kit/sortable
Import and use BetterTable:
import { BetterTable } from '@/components/table/table';
# Build
bun run build
# Watch mode
bun run dev
# Test
bun test
# Lint
bun run lint
# From the CLI package directory
cd packages/cli
# Build the package
bun run build
# Test the CLI directly
node dist/cli.js docs
node dist/cli.js docs core
node dist/cli.js docs ui
node dist/cli.js docs drizzle
node dist/cli.js init --help
# Or use bun to run the source directly
bun src/cli.ts docs
bun src/cli.ts docs core
bun src/cli.ts init --help
# From the monorepo root
cd ../..
# Build the CLI package first
bun run build --filter @better-tables/cli
# Test using pnpm dlx (will use local package)
pnpm dlx --filter @better-tables/cli better-tables docs
pnpm dlx --filter @better-tables/cli better-tables docs core
pnpm dlx --filter @better-tables/cli better-tables init --help
# From the CLI package directory
cd packages/cli
# Build first
bun run build
# Link globally (npm)
npm link
# Or use pnpm link
pnpm link --global
# Then use from anywhere
better-tables docs
better-tables docs core
better-tables init --help
# From the CLI package directory
cd packages/cli
# Run all tests
bun test
# Run tests in watch mode
bun test --watch
# Run tests with coverage
bun test --coverage
After building, you can test the bin entry point:
# From the CLI package directory
cd packages/cli
bun run build
# Test the bin entry
./dist/cli.js docs
./dist/cli.js docs core
./dist/cli.js init --help
./dist/cli.js --version
./dist/cli.js --help
MIT
FAQs
Command-line utilities for Better Tables
We found that @better-tables/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.