Import Documents
Space has a ready-to-use script that you can use to import documents into your Space project from the following external sources:
You local folder
Atlassian Confluence
The script is publicly available as a Docker image and can be run with a number of arguments right from your terminal.
If you'd like to customize the script and build your own image, you can access the source code on GitHub at: https://github.com/JetBrains/space-documents-import
Import documents from a local folder
When importing documents from your local folder:
You need to provide your Space personal token which you can obtain beforehand.
You specify your local folder as source and your Space project as a destination. You cannot specify individual files. All files from the source folder are imported into the root documentation folder of your Space project.
Only
.md
files appear in Space as Space documents - they can be viewed and edited right in Space. All other types of files are uploaded and stored as Space files - they cannot be edited in Space.
Preparation
Permissions. Make sure you have sufficient rights in your destination Space project, as the script will access it on your behalf. In your Space project you must have the View documents, Edit documents, Create documents permissions.
Authentication. You need a personal access token from Space. You will provide it as an argument value when you run the script. To get a personal token, please follow these instructions. If you choose limited access for the token, you’ll have to give it the View documents, Edit documents, Create documents permissions.
Docker. You need a Docker instance installed and running on your machine. If you don't have it, refer to the installation guide.
Run the script
The script is stored as a Docker image in a public registry at public.registry.jetbrains.space. Run the image by executing a docker run
command in your terminal.
Arguments
Argument | Description | Is required |
---|---|---|
| The path to your local directory that contains the files you want to import. | Required |
| Your Space organization URL, e.g. | Required |
| The key of your Space destination project. To look up the project key:
| Required |
| Space personal access token. To create and copy a token, follow these instructions. If you choose limited access when creating a token, you’ll have to give it the View documents, Edit documents, Create documents permissions. | Required |
Import documents from Confluence
When importing documents from your local folder:
You need to provide your Space personal token which you can obtain beforehand.
You specify the URL of your Confluence space as source and your Space project as a destination. You cannot specify individual files. All files from the source are imported into the root documentation folder of your Space project.
Preparation
Permissions. Make sure you have sufficient rights in your destination Space project and your source Confluence space, as the script will access them on your behalf. In your Space project you must have the View documents, Edit documents, Create documents permissions. In Confluence, you need the reading access to the location of the files you want to import.
Authentication. You need a personal access token from Space. You will provide it as an argument value when you run the script. To get a personal token, please follow these instructions. If you choose limited access for the token, you’ll have to give it the View documents, Edit documents, Create documents permissions.
You also need your Confluence username and password.
Docker. You need a Docker instance installed and running on your machine. If you don't have it, refer to the installation guide.
Run the script
The script is stored as a Docker image in a public registry at public.registry.jetbrains.space. Run the image by executing a docker run
command in your terminal.
Arguments
Argument | Description | Is required |
---|---|---|
| The URL of your Confluence space which contains the documents you want to import. | Required |
| The key of your Confluence space which contains the documents you want to import. | Required |
| Your username in Confluence. | Required |
| Your password in Confluence. | Required |
| Your Space organization URL, e.g. | Required |
| The key of your Space destination project. To look up the project key:
| Required |
| Space personal access token. To create and copy a token, follow these instructions. If you choose limited access when creating a token, you’ll have to give it the View documents, Edit documents, Create documents permissions. | Required |