MrDoc User Manual
🎊 Basic Concepts
📑 Collection Feature
Document Sorting (Drag & Drop)
Document Watermark
Collection Permissions
Export as PDF / EPUB / Word
Collaboration & Members
Collection Info & Settings
Export Collection
Document Access Log
Pin Collection
Disable Document Copying
Transfer Collection
Collection Sharing
Enable Document Comments
WebHook Delivery
Hide Collection on Homepage
Collection Association Set
Tabs Configuration
Content Table Sorting
📄 Document Features
Subdocument Control
Sort Documents
Set Document Level
Document Sharing
Copy / Move Document
Document Permissions
Document Versions
Document Download
Export Markdown
Export as PDF
Export as Excel
Document Attachments
Transfer Document
Directory Display
Create Shortcut
Insert Video
Document Tags
Auto-Save
🗄️ Asset Management
Upload Size Limit
Allowed Image Formats
Allowed Attachment Formats
Attachment Preview
Transfer Attachments / Images
Image Cleanup
🎯 Import and Export
Desktop Import
Import from Joplin
Import from Evernote
Web Import
CLI Import
🔑 Third-Party Login
DingTalk Login
WeChat Work Auth
LDAP Integration
OIDC Integration
WeChat OAuth
📦 Third-Party Storage
MinIO
Qiniu OSS
Aliyun OSS
AWS S3
🤖AI Integration
Basic Configuration
Dify Integration
📝OnlyOffice Integration
📊 Drawio Integration
⚓ Site Management
Site Info
Homepage Template
Users & Accounts
Tracking Code
Ads / Info Block / Custom Head
Disable Update Check
Search Mode
Image Thumbnails in Docs
Feedback
RSS
Single Tag Settings
Email Sender
Site Data Export
Editor Settings
🧑 Personal Account
Default Editor
User Nickname
Change Password
Bind Third-Party Account
🎈 User Token API
Get User Token
List Collections
Get Collection Catalog
Get Collection Documents
Get Personal Documents
Get Document Content
Create Collection
Create Document
Update Document
Upload Image
Verify Token
🖥️ Client
💻 Desktop
📱 Mobile
🌐 Browser Extension
⌨️Obsidian Plugins
Common Issues Index
Published with MrDoc Pro
-
+
home
CLI Import
MrDoc provides several command-line import tools for performing import operations directly on the device where MrDoc is running. For MrDoc instances deployed via Docker or Docker-Compose, you need to prefix the Python command with `docker exec -it <Container ID or Name>`. For example: `docker exec -it mrdoc python manage.py ……` ## Import OnlyOffice Documents This tool is used to batch import Office files from a specified directory as OnlyOffice documents in MrDoc, associating them with a specified collection and parent document. ### Syntax ```shell python manage.py import_oo_docs --path <directory_path> --user <username> --project <project_id> [--parent_doc <parent_doc_id>] ``` ### Parameter Description | Parameter | Required | Description | | --------------- | -------- | --------------------------------------------------------------------------- | | `--path` | ✅ Yes | Local directory path where the files are located. E.g., `D:/office-files/` or `/home/user/docs/` | | `--user` | ✅ Yes | Username of the user creating the documents (must be an existing user in the system) | | `--project` | ✅ Yes | ID of the target project (collection), must be a valid `Project.id` | | `--parent_doc` | ⛔ Optional | Parent document ID for the imported documents. Default is `0` (i.e., directly under the project root) | ### Usage Example ```shell python manage.py import_oo_docs --path /www/wwwroot/office --user mrdoc --project 3 ``` The above command imports Office files from the `/www/wwwroot/office` directory into the collection with ID `3`, using the username `mrdoc`.
mrdoc
Nov. 18, 2025, 4:15 p.m.
Forward
Favorites
Last
Next
Scan the QR Code
Copy link
Scan the QR code to share.
Copy link
Markdown file
Word document
PDF document
PDF document (print)
share
link
type
password
Update password
Validity period