ForSure Logo
ForSure
CLILanguageDocumentationComponents

Getting Started

IntroductionInstallationQuick StartDownloads

Syntax

Basic SyntaxFile StructureCommentsAttributesImport Directives

AI & Neural Network

OverviewExamplesAdvanced FeaturesTeam UsageAPI Reference

Examples

Basic ExamplesIntermediate ExamplesAdvanced Examples

CLI Reference

CommandsOptionsConfiguration

API Reference

OverviewNode APIProgrammatic Usage

Tools & Extensions

VS Code ExtensionSyntax HighlightingEditor Integrations
ForSure Logo
ForSure

A powerful file structure definition language and CLI tool for developers.

GitHubTwitter

Products

CLI LanguageWeb EditorIDE Extensions

Resources

DocumentationExamplesTemplatesBlog

Company

AboutCareersContactPrivacy Policy

© 2026 ForSure. All rights reserved.

TermsPrivacyCookies
Syntax

Attributes

Advanced attributes and properties for fine-tuning file generation.

File Attributes

Control file permissions, encoding, and other properties.

forsure
root: - Type: File - Name: script.sh - Permissions: 755 - Encoding: utf-8 - LineEnding: unix <content> #!/bin/bash echo "Hello World" </content> <description> Executable shell script </description>

Conditional Generation

Use conditions to control when files should be created.

forsure
root: - Type: File - Name: .gitignore - Condition: "git == true" <content> node_modules/ dist/ .env </content> - Type: File - Name: Dockerfile - Condition: "docker == true" <content> FROM node:18 WORKDIR /app COPY package*.json ./ RUN npm install COPY . . CMD ["npm", "start"] </content>

Template Variables

Use variables to make templates more flexible.

forsure
root: - Type: File - Name: package.json <content> { "name": "${PROJECT_NAME}", "version": "${VERSION}", "description": "${DESCRIPTION}", "author": "${AUTHOR}", "scripts": { "start": "node index.js", "test": "jest" } } </content> <description> Package configuration with variables </description>

Custom Attributes

Define custom attributes for specialized use cases.

forsure
root: - Type: File - Name: config.json - Custom: ["env:production", "encrypted:true"] - Priority: high - Dependencies: ["database", "cache"] <content> { "environment": "production", "encrypted": true, "priority": "high" } </content>