# 檔案管理 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/termux/dang-an-guan-li-cloudcmd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
