檔案管理 cloudcmd

 npm install -g cloudcmd

使用自訂命令

cloudcmd -u root -p pass --root /storage/emulated/0

使用 gritty 終端機

npm i gritty -g
cloudcmd -u root -p pass --root /storage/emulated/0 --terminal --terminal-path `gritty --path` --save

因為權限的問題,直接執行cloudcmd會失敗, 需自訂.cloudcmd.json

{
    "name": "",
    "auth": true,
    "username": "root",
    "password": "yourpass",
    "algo": "sha512WithRSAEncryption",
    "editor": "edward",
    "packer": "tar",
    "diff": true,
    "zip": true,
    "buffer": true,
    "dirStorage": false,
    "online": false,
    "open": true,
    "keysPanel": true,
    "port": 8000,
    "ip": null,
    "root": "/storage/9B43-B819/Android/data/com.termux/files",
    "prefix": "",
    "prefixSocket": "",
    "progress": true,
    "contact": true,
    "confirmCopy": true,
    "confirmMove": true,
    "configDialog": true,
    "configAuth": true,
    "oneFilePanel": true,
    "console": true,
    "syncConsolePath": false,
    "terminal": false,
    "terminalPath": "",
    "terminalCommand": "",
    "terminalAutoRestart": true,
    "showConfig": false,
    "showFileName": false,
    "vim": false,
    "columns": "name-size-date-owner-mode",
    "export": false,
    "exportToken": "root",
    "import": false,
    "importToken": "root",
    "importUrl": "http://localhost:8000",
    "importListen": false,
    "log": true,
    "dropbox": false,
    "dropboxToken": ""
}

執行一次

cloudcmd

Last updated