Previous Next JavaScript must be enabled to correctly display this content

## 3.11.11.1.7 Exporting a Workspace

Export a workspace using the `apex export` command with the `-expWorkspace` option.

To export an workspace, use the `apex export` command with the `-expWorkspace` option and provide the workspace ID. This command exports all relevant workspace metadata, including groups, group grants, users, RESTful services, user interface defaults, attribute dictionary, and so on.

In the following example, the workspace ID is `1908816359534887` and would create a file named `w1908816359534887.sql` in the current directory.

    SQL> apex export -expWorkspace -workspaceId 1908816359534887

Additional Workspace Export Options

Include the following additional options to your workspace export to control what workspace information is included in the workspace export:

- `-expMinimal` - Only export workspace definition, users, and groups.

- `-debug` - Print debug output.

Parent topic: Exporting and Importing Using SQLcl