Cli
Remove Dependencies
Remove dependencies from a specific app in your Zodula monorepo
Overview
The nailgun remove command allows you to remove dependencies from a specific app within your Zodula monorepo. This command provides an interactive way to select the target app and uninstall packages using Bun.
Usage
nailgun remove <packages...> [options]Arguments
<packages...>- One or more package names to remove
Options
-a, --app <app>- Specify the target app name (e.g., zodula, onlyagents)
Examples
Remove dependencies
# Remove a single package
nailgun remove lodash
# Remove multiple packages
nailgun remove react react-dom @types/react
# Remove from a specific app
nailgun remove express --app zodulaRemove development dependencies
# Remove dev dependencies
nailgun remove typescript @types/node --app onlyagentsInteractive Mode
If you don't specify the --app option, the command will prompt you to select from available apps:
nailgun remove lodash
# ? Select an app to remove dependencies from: (Use arrow keys)
# ❯ zodula (/path/to/zodula)
# onlyagents (/path/to/onlyagents)How It Works
- App Discovery: The command scans your monorepo for available apps
- App Selection: Either uses the specified
--appoption or prompts for selection - Dependency Removal: Runs
bun removein the target app's directory - Verification: Confirms successful removal or reports errors
Notes
- The command uses Bun as the package manager
- All dependency types (production, development, peer) can be removed
- The command automatically changes to the target app's directory before running
bun remove - If the specified app doesn't exist, the command will list available apps and exit with an error
- Removing a package will also remove it from your
package.jsonand update the lock file
Zodula