npx gluestack-ui@alpha init# Navigate to your monorepo root
cd my-monorepo
# Initialize gluestack-ui in monorepo mode
npx gluestack-ui init --monorepo --path packages/ui
# The CLI will:
# 1. Prompt you to select a styling engine (NativeWind v5, UniWind, etc.)
# 2. Create GluestackUIProvider in packages/ui
# 3. Generate gluestack-ui.config.json at repo root:
# {
# "app": {
# "components": "packages/ui"
# }
# }
# 4. Install dependencies and update config files
# Later, add components
npx gluestack-ui add button --monorepo
# Or add all components
npx gluestack-ui add --all --monorepo
npx gluestack-ui init --monorepo --path packages/ui --nativewind-v5 -y
npx gluestack-ui add button --monorepo -y
Usage: npx gluestack-ui@alpha init [options]
initialize your gluestack-ui and install dependencies
Options:
--path <path> Path to add GluestackUIProvider, defaults to components/ui in the current directory.
--monorepo Run init in monorepo/library mode and interactively choose components path.
--use-npm Use npm as the package manager (default)
--use-yarn Use yarn as the package manager
--use-bun Use bun as the package manager
--use-pnpm Use pnpm as the package manager
--nativewind Use NativeWind v4 (Tailwind CSS v3)
--nativewind-v5 Use NativeWind v5 (Tailwind CSS v4)
--uniwind Use UniWind (Tailwind CSS v4, Expo-only)
-y, --yes Answer yes to all prompts (non-interactive mode)npx gluestack-ui@alpha add [component]Usage: npx gluestack-ui@alpha add [component] [options]
add component to your project
Options:
--all Adds all existing components from gluestack-ui
--path <path> Path to add components, defaults to the directory where GluestackUIProvider is located.
--monorepo Run add in monorepo mode and interactively choose components path.
--use-npm Set npm as the project's package manager, default
--use-yarn Set yarn as the project's package manager
--use-bun Set bun as the project's package manager
--use-pnpm Set pnpm as the project's package manager, currently not supported in react-native-cli projects.
-y, --yes Answer yes to all prompts (non-interactive mode)npx gluestack-ui@alpha upgrade◆ Which styling engine would you like to upgrade to?
│ ● NativeWind v5 (Tailwind CSS v4)
│ ○ UniWind (Tailwind CSS v4, Expo-only)
│ ○ Stay on current versionnpx gluestack-ui@alpha init{
"app": {
"components": "packages/ui"
}
}
{
"tailwind": {
"config": "tailwind.config.js",
}
}
{
"tailwind": {
"css": "global.css"
}
}
{
"app": {
"entry": "app/_layout.tsx",
}
}
{
"app": {
"components": "components/ui",
}
}