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

CLI Options

Comprehensive reference for all ForSure CLI command options.

Global Options

These options can be used with any ForSure CLI command:

OptionShortDescription
--help-hShow help information for the command
--verbose-vShow detailed output and logging
--config-cSpecify path to configuration file
--version-VShow CLI version information

Generate Command Options

Options specific to the generate command:

OptionShortDescription
--output-oSpecify the output directory
--force-fOverwrite existing files
--dry-run-dShow what would be generated without creating files
--template-tUse specific template for generation
--ignore-iIgnore files matching pattern

Examples:

bash
forsure generate project.forsure --output ./my-project --force forsure generate project.forsure --dry-run --verbose forsure generate project.forsure --template react --ignore "*.test.js"

Gen Command Options

Options for code generation commands (gen component, gen hook, etc.):

OptionShortDescription
--name-nSpecify the name for the generated item
--template-tTemplate type (basic, form, layout, data, api)
--typescript-tsGenerate TypeScript files
--testGenerate test files
--storybook-sbGenerate Storybook stories
--path-pOutput path for generated files

Examples:

bash
forsure gen component -n button --template basic --typescript --test --storybook forsure gen hook -n use-api --template api --typescript --test forsure gen page -n dashboard --template admin --typescript --path ./pages/admin

Design System Options

Options for design system commands:

OptionShortDescription
--format-fOutput format (css, scss, typescript, json)
--watch-wWatch for changes and auto-generate
--themeGenerate specific theme
--output-oOutput directory for generated files

Examples:

bash
forsure design tokens --format css --watch forsure design tokens --format scss --theme dark --output ./themes/ forsure design tokens --format typescript --output ./types/

Build & Test Options

Options for build and test commands:

OptionShortDescription
--production-pBuild for production environment
--coverage-cGenerate test coverage report
--watch-wWatch mode for tests
--minifyMinify output files
--sourcemap-sGenerate source maps

Publish Options

Options for the publish command:

OptionShortDescription
--registry-rPackage registry (npm, yarn, private)
--tag-tRelease tag (latest, beta, alpha)
--dry-run-dSimulate publish without actually publishing
--access-aAccess level (public, private)

Environment Variables

ForSure CLI can be configured using environment variables:

VariableDescription
FORSURE_CONFIGPath to configuration file
FORSURE_OUTPUT_DIRDefault output directory
FORSURE_TEMPLATE_DIRCustom templates directory
FORSURE_LOG_LEVELLogging level (error, warn, info, debug)
FORSURE_REGISTRYDefault package registry

Example Usage:

bash
export FORSURE_CONFIG="./custom-config.json" export FORSURE_OUTPUT_DIR="./dist" export FORSURE_LOG_LEVEL="debug" forsure generate project.forsure

Next Steps

Learn more about configuring the ForSure CLI:

  • CLI Configuration →
  • Back to CLI Reference →
  • See more examples →