@fui-org/fui-cli 2.2.3 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -86,10 +86,29 @@ fui query "SELECT TOP 5 * FROM tblX" --db my-project/docs
86
86
  fui schema --search student
87
87
  fui sp get spAPI_Student_Select
88
88
  fui file status
89
+ fui cdn list -p my-project --recursive
89
90
  ```
90
91
 
91
92
  `fui <command> --help` shows the options of one command.
92
93
 
94
+ ## Project files on the CDN
95
+
96
+ `fui cdn` manages a project's CKFinder files with the saved `userToken`. It reads the live resource type, allowed extensions and upload limit from CKFinder before uploading. File links use `/_cdn/<project>/...`, so the same relative path works on any domain that serves the project.
97
+
98
+ ```bash
99
+ fui cdn info -p my-project
100
+ fui cdn list / -p my-project --recursive
101
+ fui cdn mkdir /images/ -p my-project
102
+ fui cdn upload ./logo.png -p my-project --to /images/
103
+ fui cdn url /images/logo.png -p my-project --origin https://fui.vn
104
+ fui cdn rename /images/logo.png logo-new.png -p my-project
105
+ fui cdn copy /images/logo-new.png --to /archive/ -p my-project
106
+ fui cdn move /images/logo-new.png --to /assets/ -p my-project
107
+ fui cdn download /assets/logo-new.png -o ./logo-new.png -p my-project
108
+ ```
109
+
110
+ `fui cdn rm` and `fui cdn rmdir` permanently delete files and folders; both require `--confirm-delete`. A nonempty folder additionally requires `--recursive`. `fui cdn --help` lists the full group. Use `--user-token-from <project/connection>` or `--user-token-env <name>` when the workspace has several distinct tokens for the FUI domain.
111
+
93
112
  ## Workspace location
94
113
 
95
114
  `fui` keeps projects in `~/.fui/workspaces`. To use another folder: