on shell, it’s simply ln command. use “man ln” in Terminal to read manual.
Or use NSFileManagerMBS and the createSymbolicLink method. Or linkItem for hard link. And destinationOfSymbolicLinkAtPath resolves them. Can be used easily with MBS Plugins or you write yourself a few declares for that.