-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start Guide
LoSkroefie edited this page Jan 19, 2025
·
1 revision
This guide will help you get started with FLEXON CLI quickly.
-
Download the latest release for your platform:
-
Extract the archive to a suitable location
-
Add to PATH:
# Windows (PowerShell Admin) $env:Path += ";C:\path\to\flexon-cli" # macOS/Linux export PATH="/path/to/flexon-cli:$PATH"
-
Verify installation:
flexon-cli --version
# Basic conversion
flexon-cli encode input.json output.flexon
# With compression
flexon-cli encode --compress input.json output.flexon
# With schema validation
flexon-cli encode --schema schema.json input.json output.flexon# Basic conversion
flexon-cli decode input.flexon output.json
# Pretty print
flexon-cli decode --pretty input.flexon output.json# View contents
flexon-cli inspect data.flexon
# Export inspection to file
flexon-cli inspect data.flexon --output report.txt# Validate file
flexon-cli validate data.flexon schema.json
# Detailed validation report
flexon-cli validate --detailed data.flexon schema.jsonFLEXON supports all JSON types plus additional types:
- Strings, Numbers, Booleans, Null
- Arrays and Objects
- DateTime
- UUID
- Binary Data
Example:
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-01-19T08:39:44+02:00",
"name": "Example",
"data": [1, 2, 3]
}{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"type": "number"
}
}
}
}- Read the Type System guide for detailed type information
- Learn about Schema Validation for data validation
- Check Performance Optimization for production use
- See Best Practices for recommended patterns