Installation
SentriFlow is available as a command-line interface (CLI) for automation and CI/CD pipelines, and as a VS Code extension for real-time validation in your editor.
System Requirements
Before installing SentriFlow, ensure your system meets these requirements:
| Component | Requirement |
|---|---|
| Node.js | 18.0.0 or later |
| Operating System | Windows, macOS, or Linux |
| VS Code | 1.80 or later (for extension only) |
SentriFlow uses ES modules and requires Node.js 18+ for native module support.
CLI Installation
The SentriFlow CLI (@sentriflow/cli) provides command-line validation for scripts, CI/CD pipelines, and batch processing.
Package Managers
Install the CLI globally using your preferred package manager:
npm
npm install -g @sentriflow/cliVerify Installation
After installation, verify the CLI is working correctly:
sentriflow --versionYou should see output similar to:
sentriflow/0.4.1Local Project Installation
For project-specific installations (recommended for CI/CD), install as a dev dependency:
npm
npm install -D @sentriflow/cliThen run via npx or your package manager:
npx sentriflow router.confVS Code Extension
The SentriFlow VS Code extension provides real-time validation as you edit network configurations.
From Marketplace
Open VS Code
Launch Visual Studio Code on your machine.
Open Extensions View
Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (macOS) to open the Extensions view.
Search for SentriFlow
Type SentriFlow in the search box.
Install Extension
Click Install on “SentriFlow Compliance Validator” by sentriflow.
Verify Installation
You should see the SentriFlow icon appear in the Activity Bar on the left side of VS Code.
Command Line Installation
You can also install the extension via the command line:
code --install-extension sentriflow.sentriflow-vscodeThe code command must be available in your PATH. On macOS, you may need to run “Shell Command: Install ‘code’ command in PATH” from the VS Code Command Palette first.
Manual Installation (VSIX)
For air-gapped environments or when you need a specific version, install from a VSIX file:
Download the VSIX
Download the .vsix file from the VS Code Marketplace or GitHub Releases .
Install via Command Palette
- Open VS Code
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(macOS) - Type
Extensions: Install from VSIX... - Select the downloaded
.vsixfile
Alternative: Command Line
code --install-extension sentriflow-vscode-0.5.3.vsixManual VSIX installations do not receive automatic updates. Check for new versions periodically.
Verify VS Code Extension
After installation:
- Open any
.conf,.cfg,.ios, or.junosfile - Look for the SentriFlow icon in the Activity Bar
- Check the status bar for the SentriFlow status indicator
You should see the SentriFlow panel with:
- Rules - Available validation rules organized by pack and vendor
- IP Addresses - Extracted IP addresses from the current file
- License - License status (Community tier by default)
- Settings - Configuration options
Supported File Types
SentriFlow automatically activates for files with these extensions:
| Extension | Description |
|---|---|
.conf | Generic configuration files |
.cfg | Generic configuration files |
.ios | Cisco IOS configurations |
.junos | Juniper Junos configurations |
startup-config | Cisco startup configuration |
running-config | Cisco running configuration |
For other file types, set the language mode to “Network Config” via the Command Palette or status bar.
Troubleshooting
CLI Issues
Command not found after installation
If sentriflow is not found, ensure your global npm/yarn/pnpm bin directory is in your PATH:
# npm
npm config get prefix
# Add <prefix>/bin to PATH
# yarn
yarn global bin
# Add output directory to PATH
# pnpm
pnpm config get global-bin-dir
# Add output directory to PATHPermission errors on Linux/macOS
If you encounter EACCES permission errors:
# Option 1: Use a Node version manager (recommended)
# Install nvm, fnm, or volta
# Option 2: Change npm prefix (not recommended for beginners)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATHVS Code Extension Issues
Extension not activating
- Ensure the file has a supported extension (
.conf,.cfg,.ios,.junos) - Or manually set the language: Press
Ctrl+K Mand select “Network Config” - Check the Output panel (
View > Output > SentriFlow) for error messages
Extension conflicts
If you have other network configuration extensions installed, they may conflict. Try disabling other extensions temporarily to isolate the issue.
Next Steps
Now that SentriFlow is installed, continue to:
- Quick Start - Validate your first configuration
- VS Code Setup - Configure the VS Code extension
- CLI Commands - Learn all CLI options