You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/cli.md
+255-2Lines changed: 255 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
-
date: 2025-10-17 10:58:59
2
+
date: 2025-11-05 20:30:00
3
3
title: Command Line Interface
4
4
permalink:
5
-
publish: false
5
+
publish: true
6
6
---
7
7
8
8
# Command Line Interface
@@ -13,3 +13,256 @@ You can use the command line interface to manage your documentations and their a
13
13
14
14
## Overview
15
15
16
+
Since `v3`, the CLI has been rewritten to be greatly simplified.
17
+
18
+
In `v3.0.x`, there only has commands to create, remove, move notes with there correspondingly assets directories and clean up orphaned asset directories:
19
+
20
+
| Commands | Description |
21
+
|:----------:|:-------------:|
22
+
|`new`| Create a new note file with proper asset structure. |
23
+
|`remove`| Remove a note file and its corresponding asset directory. |
24
+
|`move`| Move a note file and its corresponding asset directory to a new location. |
25
+
|`clean`| Clean up orphaned asset directories. |
26
+
27
+
## Commands Detail
28
+
29
+
### `new`
30
+
31
+
Create a new note file with proper asset structure.
32
+
33
+
-**Usage:**
34
+
35
+
```bash
36
+
mkdocs-note new FILE_PATH [OPTIONS]
37
+
```
38
+
39
+
- **Arguments:**
40
+
41
+
- `FILE_PATH` (required): Path where the new note file should be created
42
+
43
+
- **Features:**
44
+
45
+
- Automatically generates front matter metadata:
46
+
47
+
- `date`: Current timestamp in format `YYYY-MM-DD HH:MM:SS`
48
+
49
+
- `title`: Auto-generated from filename (converts `-` and `_` to spaces and title-cases)
0 commit comments