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

File Structure

How to define hierarchical file and directory structures in ForSure.

Directory Structure

Directories are defined using indentation and the Type: Directory property.

forsure
root: - Type: Directory - Name: src/ <description> Main source directory </description> - Type: Directory - Name: components/ <description> React components </description> - Type: File - Name: Button.jsx <description> Button component </description>

File Definitions

Files are defined with Type: File and can include content templates.

forsure
root: - Type: File - Name: package.json <content> { "name": "my-project", "version": "1.0.0", "scripts": { "start": "node index.js" } } </content> <description> Package configuration </description>

Nested Structures

Create complex nested structures by combining directories and files.

forsure
root: - Type: Directory - Name: web-app/ <description> Full web application structure </description> - Type: File - Name: package.json <content> {"name": "web-app", "version": "1.0.0"} </content> - Type: Directory - Name: public/ <description> Static assets </description> - Type: Directory - Name: src/ <description> Source code </description> - Type: File - Name: index.html <content> <!DOCTYPE html> <html> <head><title>Web App</title></head> <body><h1>Hello World</h1></body> </html> </content>