Downloads
Download and install ForSure tools for your development environment.
ForSure CLI
Command-line interface for generating and validating file structures.
npm
Install globally via npm package manager.
npm install -g forsure-cli
Binary (macOS/Linux)
Download and install the binary directly.
Binary (Windows)
Download and install the Windows executable.
Installation Instructions
From npm
# Install globally
npm install -g forsure-cli
# Verify installation
forsure --version
From Binary (macOS/Linux)
# Download the binary
curl -L https://github.com/elicharlese/ForSure/releases/latest/download/forsure-cli-linux -o forsure
# Make it executable
chmod +x forsure
# Move to a directory in your PATH
sudo mv forsure /usr/local/bin/
From Binary (Windows)
1. Download the Windows executable
2. Add the executable location to your PATH environment variable
3. Open a new command prompt and verify with forsure --version
VS Code Extension
Enhance your development experience with syntax highlighting, snippets, and more.
ForSure for VS Code
Official VS Code extension with syntax highlighting, snippets, and validation.
Features
- Syntax highlighting for .forsure files
- Code snippets for common patterns
- Real-time validation and error checking
- Preview file structure in VS Code
- Integration with ForSure CLI
Installation
Install directly from VS Code:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "ForSure"
- Click "Install"
Or install from VSIX file:
Extension Preview
root:
# Main source code directory
- src:
- index.js { entry: true }
- utils:
# Utility scripts
- helpers.js
- date.js { timezone: "UTC" }
# Assets for front-end design
- assets:
- logo.svg
- css:
# Style sheets
- theme.css
# Documentation file
- README.md
Syntax Highlighting
Syntax highlighting for various text editors and IDEs.
Sublime Text
Syntax highlighting package for Sublime Text.
Atom
Syntax highlighting package for Atom editor.
JetBrains IDEs
Plugin for IntelliJ, WebStorm, and other JetBrains IDEs.
Manual Configuration
If your editor doesn't have a dedicated package, you can manually configure syntax highlighting:
Vim
" Add to your .vimrc
au BufRead,BufNewFile *.forsure set filetype=yaml
au BufRead,BufNewFile *.fs set filetype=yaml
Emacs
;; Add to your .emacs or init.el
(add-to-list 'auto-mode-alist '("\.forsure\'" . yaml-mode))
(add-to-list 'auto-mode-alist '("\.fs\'" . yaml-mode))
TextMate/BBEdit
Associate .forsure and .fs files with YAML syntax highlighting in your editor preferences.
Next Steps
Now that you've installed the ForSure tools, you can: