Skip to content

List, search and get ​

Start with the CLI quick start for installation. To reproduce these captures, create a new directory and save this synthetic fixture as sitemanager.xml there. It contains a deliberately invalid external hostname, a dummy key path and a demonstration password. These query commands only read XML; they never connect or load the referenced key file.

The transcripts preserve the actual CLI colours. Local absolute paths in JSON are abbreviated as <fixture-directory>; use the filename saved above. Query behavior explains canonical paths and redaction. All output shapes includes full records, previews and refusals.

list (terminal) ​

sh
filezilla-js list --file ./sitemanager.xml --color

Exit code: 0.

stdout ​

• Demo (Private key: C:/keys/example.ppk; Remote: /srv/example)

list (JSON) ​

sh
filezilla-js list --file ./sitemanager.xml --json

Exit code: 0.

stdout ​

json
[
  {
    "path": "Demo",
    "host": "files.example.invalid",
    "protocol": "SFTP",
    "keyFile": "C:/keys/example.ppk",
    "remoteDirectory": "/srv/example"
  }
]

list (table) ​

sh
filezilla-js list --file ./sitemanager.xml --table --color

Exit code: 0.

stdout ​

┌──────┬───────────────────────┬──────────┬─────────────────────┬──────────────┐
│ Path │ Host                  │ Protocol │ Private key         │ Remote       │
├──────┼───────────────────────┼──────────┼─────────────────────┼──────────────┤
│ Demo │ files.example.invalid │ SFTP     │ C:/keys/example.ppk │ /srv/example │
└──────┴───────────────────────┴──────────┴─────────────────────┴──────────────┘
sh
filezilla-js search example --file ./sitemanager.xml --color

Exit code: 0.

stdout ​

Found 1 server

┌─────────────┬───────────────────────┐
│ Label       │ Value                 │
├─────────────┼───────────────────────┤
│ Name        │ Demo                  │
│ Path        │ Demo                  │
│ Protocol    │ SFTP                  │
│ Host        │ files.example.invalid │
│ Port        │ 22                    │
│ Username    │ deploy                │
│ Password    │ (hidden*)             │
│ Private key │ C:/keys/example.ppk   │
│ Remote      │ /srv/example          │
└─────────────┴───────────────────────┘

*Enable passwords with --show-password

get (JSON) ​

sh
filezilla-js get Demo --file ./sitemanager.xml --json

Exit code: 0.

stdout ​

json
{
  "path": "Demo",
  "host": "files.example.invalid",
  "port": 22,
  "protocol": 1,
  "type": 0,
  "user": "deploy",
  "password": "(hidden)",
  "passwordEncoding": "base64",
  "keyFile": "C:/keys/example.ppk",
  "logonType": 1,
  "timezoneOffset": 0,
  "passiveMode": 0,
  "maximumMultipleConnections": 0,
  "encodingType": 2,
  "bypassProxy": false,
  "name": "Demo",
  "remoteDirectory": "/srv/example",
  "synchronizedBrowsing": false,
  "directoryComparison": false,
  "protocolName": "SFTP"
}

get a property ​

sh
filezilla-js get Demo host --file ./sitemanager.xml --json

Exit code: 0.

stdout ​

json
"files.example.invalid"

source ​

sh
filezilla-js source --file ./sitemanager.xml --json

Exit code: 0.

stdout ​

json
{
  "id": "filezilla:<fixture-directory>\\sitemanager.xml",
  "application": "FileZilla",
  "location": "<fixture-directory>\\sitemanager.xml",
  "storage": [
    {
      "kind": "file",
      "path": "<fixture-directory>\\sitemanager.xml",
      "format": "xml"
    }
  ]
}