Synopsis
Subcommands
edit
Opens fishnet.toml in the editor specified by theEDITOR environment variable (defaults to vi).
Examples
Edit with default editor
Edit with specific editor
Edit custom config location
Behavior
- Locates the configuration file (default or custom path)
- Creates a default configuration file if it doesn’t exist
- Opens the file in
$EDITOR(falls back toviif not set) - Waits for the editor to exit
- The server watches for file changes and reloads automatically
Configuration file structure
The fishnet.toml file contains:Error messages
Editor failed:Exit codes
- 0 - Configuration file edited successfully
- 1 - Error occurred (editor failed, config path not found, etc.)
Tips
- Changes take effect immediately if Fishnet is running (config file is watched)
- Invalid configuration will be rejected on reload with an error message
- Use
fishnet doctorto verify configuration changes - Comment lines start with
# - Restart Fishnet if configuration changes are not applied
Environment variables
EDITOR- Text editor to use (default: vi)VISUAL- Alternative editor variable (EDITOR takes precedence)
Related commands
- fishnet init - Initialize configuration during first-time setup
- fishnet doctor - Validate configuration
- fishnet start - Start server with configuration