AppleShowAllFiles does not show hidden files
The bundle identifier is com.apple.finder in lowercase.

defaults write com.apple.Finder AppleShowAllFiles YES would also write the setting as a string, but it doesn't usually matter though.

defaults write com.apple.finder AppleShowAllFiles -bool true
osascript -e 'quit app "Finder"'