# Save to disk or iCloud by default

Choose whether the default file save location is on disk or iCloud

  • Tested on macOS:
    • Catalina
  • Parameter type: bool

# Set to true (default value)

defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool true
  • iCloud Documents is the default directory opened in the fileviewer dialog when saving a new document

# Set to false

defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
  • home directory is opened in the fileviewer dialog when saving a new document

# Read current value

defaults read NSGlobalDomain NSDocumentSaveNewDocumentsToCloud

# Delete current value

defaults delete NSGlobalDomain NSDocumentSaveNewDocumentsToCloud