it2 variable import
Import variables from JSON file
Synopsis
it2 variable import <file> [flags]
Description
Import variable definitions from a JSON file created by the export command.
The JSON file should contain variables in the format created by 'it2 variable export'.
Variables are imported with their original scope and identifier settings.
Examples:
it2 variable import backup.json # Import all variables
it2 variable import backup.json --scope app # Import only app variables
it2 variable import backup.json --dry-run # Preview without applying
Options
-
--dry-run - Preview import without applying changes
-
--overwrite - Overwrite existing variables
-
--scope - Import only variables from specific scope
-
--session - Override session ID for session-scoped variables
-
--tab - Override tab ID for tab-scoped variables
-
--window - Override window ID for window-scoped variables
Options inherited from parent commands
-
--format(default "text") - Output format (text, json, yaml) - affects how command results are displayed
-
--timeout - Timeout for API operations - how long to wait for iTerm2 to respond
-
--url - WebSocket URL for iTerm2 API - typically ws://localhost:1912 for local iTerm2
See Also
- it2 variable - Manage iTerm2 variables
- it2 variable delete - Delete/unset a variable
- it2 variable export - Export variables to JSON
- it2 variable get - Get value of a variable
- it2 variable list - List variables
- it2 variable monitor - Monitor variable changes in real-time
- it2 variable set - Set value of a variable