init
Initialize Device Only
Register your device with FileFortress and set up the local configuration.
New to FileFortress?
The setup command provides a complete onboarding experience. Learn more →
Syntax
filefortress init [--code <registration_code>] [options]filefortress init --non-interactive [--code <registration_code>] [options]Interactive by Default
The init command runs in interactive mode by default for the best user experience. Use --non-interactive for scripted usage.
Mode Options
| Parameter | Description | Default |
|---|---|---|
--non-interactive |
Run in non-interactive mode (requires --code) | false |
--quiet |
Suppress progress messages in script mode | false |
Parameters
| Parameter | Description | Required | Example |
|---|---|---|---|
--code, -c |
Registration code from your dashboard | Non-interactive | --code ABC123XYZ |
--name, -n |
Device name | Optional | --name "My Laptop" |
--type, -t |
Device type (desktop, mobile, server, laptop, tablet) | Optional | desktop |
--create-key-file |
Path to create a private key file | Optional | --create-key-file ./my.key |
Password Setup
When using the global --password option during initialization, use --create-key-file to automatically create a private key file for convenient future authentication.
Examples
Interactive initialization (recommended):
filefortress init
Guided setup with prompts for all options.
For scripting/automation:
filefortress init --non-interactive --code ABC123XYZ --name "Server-01"
Non-interactive mode for automated scripts.
With custom password and key file:
filefortress --password mySecretPassword init --non-interactive --code ABC123XYZ --create-key-file ./my-key.key
Sets up a user-defined password and creates a key file.
Security Recommendations
- Use automatic encryption mode for personal devices where convenience is preferred
- Use custom password mode when you need to access data from multiple devices
- Always create a key file when using custom passwords
- Store key files securely and back them up safely
Next Steps
After initializing your device, here's what to do next: