Get started with ForSure by installing our command-line interface tool.
Using npm (Recommended):
npm install -g forsure-cli
Using yarn:
yarn global add forsure-cli
Download the binary for your platform:
After installation, verify that the ForSure CLI is working correctly by running:
forsure --version
You should see the version number of the ForSure CLI that you installed.
Create your first ForSure file and generate a project structure:
1. Create a ForSure file:
1# project.forsure
2root:
3 - Type: Directory
4 - Path: ./
5 <description>
6 Root directory of the project.
7 </description>
8
9 - Type: File
10 - Name: README.md
11 <description>
12 Project documentation.
13 </description>
14
15 - Type: Directory
16 - Name: src/
17 <description>
18 Source code directory.
19 </description>
2. Generate the project structure:
forsure generate project.forsure --output ./my-project
Node.js v14.0.0 or higher is required for the npm installation method.
Windows 10/11, macOS 10.15+, or Linux (Ubuntu, Debian, CentOS, etc.)
Approximately 50MB of free disk space is required.