vis init
Initialize vis.config.ts with best-practice security defaults
vis init
Initialize a vis.config.ts configuration file with best-practice security defaults. In interactive mode, guides you through setting up Socket.dev, build script approval, git hooks, and PM config sync.
Usage
vis init [options]Examples
# Interactive setup wizard
vis init
# Create minimal config without prompts
vis init --no-interactive
# Overwrite existing config
vis init --force
# Also sync to native PM config files
vis init --sync-nativeOptions
| Option | Default | Description |
|---|---|---|
--force | false | Overwrite existing config file |
--no-interactive | false | Skip interactive prompts |
--sync-native | false | Sync settings to native PM config files |
Interactive Wizard
The wizard walks through:
- Socket.dev — Enable supply-chain security scanning
- Build scripts — Scan and approve packages with build scripts
- Git hooks — Set up pre-commit hooks with lint-staged
- PM sync — Sync security settings to pnpm/npm/yarn config