To export or unexport file system paths from the command line, you can run the exportfs command. For more information, see the na_exportfs(1) man page.
More information
Exporting file system paths
You can export a file system path with or without adding a corresponding entry to the /etc/exports file. In addition, you can export all file system paths specified in the /etc/exports file.
Unexporting file system paths
You can unexport one file system path and optionally remove its corresponding entry from the /etc/exports file. In addition, you can unexport all file system paths without removing their corresponding entries from the /etc/exports file.