Operation Modes

Lift automatically detects how it should operate -- Project, Server, or Local mode -- based on config file presence.

Operation Modes

Lift automatically detects how it should operate based on config file presence:

ModeDetected ByDescription
Project.lift.json exists in current directoryFull deploy mode. Server details come from config file. Most common mode for development.
Server/etc/lift/config.json existsRunning directly on a managed server. Used for on-server diagnostics and tool management.
LocalNeither config existsRequires the --server flag. Use --user and --key to specify SSH credentials. Default user: onelift.

Examples

# Project mode (most common)
cd my-app # has .lift.json
lift status

# Local mode (ad-hoc)
lift doctor --server 168.119.60.42
lift status --server 168.119.60.42

# Local mode with custom SSH credentials
lift doctor --server 168.119.60.42 --user root --key ~/.ssh/id_ed25519