file-server
Each environment can run one Celigo-hosted SFTP file server for its trading partners. Enabling the server claims a permanent identifier, and every partner logs in to the shared endpoint as <username>@<identifier>. Each partner account is rooted in a Celigo Storage folder (_homeFolderId): files a partner uploads appear in that folder, and files placed there are what the partner can download. While the account exists, that folder and its ancestors cannot be deleted from storage.
The license must include the file server add-on; without it, get returns a reduced object with entitled: false. A sandbox cannot enable a server, and every route needs a full-access API token — a scoped token gets 403 FILESERVER_FULL_ACCESS_TOKEN_REQUIRED. The server is resolved from the token, so no command takes a server id.
This command group shows, enables, and disables the server, and manages its partner accounts with accounts list, get, create, set, set-password, and delete. Every write needs full mode.
Added in celigo-cli 2026.10.1.
⚠️ Passwords are never flag values.
accounts createandaccounts set-passwordprompt for the password twice, without echo, on a terminal. Elsewhere, pass--password-stdinand pipe the password in. Surrounding whitespace is dropped. The password is never returned —passwordSetsays whether one exists.
REST API: File Server
celigo file-server <subcommand> [args] [flags]
celigo file-server accounts <subcommand> [args] [flags]Supports all global flags.
Subcommands
get
Show the environment's file server: enabled, identifier, endpoint, host-key fingerprints, login format, and limits.
enable
Enable the file server — creating it, with its permanent --identifier, on the first call.
disable
Disable the file server. The identifier and every account are kept; every open partner session ends.
accounts list
List the partner accounts, oldest first.
accounts get <id>
Fetch one partner account by ID.
accounts create
Create an enabled partner account rooted in a Celigo Storage folder.
accounts set <id> key=value …
Change an account's username, _homeFolderId, or enabled, and keep the rest.
accounts set-password <id>
Set a new password for an account, or remove it with --clear.
accounts delete <id>
Delete a partner account permanently.
celigo file-server get
Show the environment's file server: enabled, its permanent identifier, the endpoint (host and port) and the hostKeyFingerprints partners connect with and should pin, the loginFormat, and the effective limits.
A server that was never enabled answers 404 FILESERVER_NOT_FOUND, and the accounts routes answer 422 FILESERVER_NOT_ENABLED. Both errors end with a hint:
Signature
Arguments
None.
Flags
Uses global flags only.
Example
Corresponds to: GET /v1/mft/fileserver
celigo file-server enable
Enable the file server. The first call creates it and needs --identifier: 3–30 lowercase letters, digits, or hyphens, unique in the region. The identifier becomes permanent and part of every partner login, so --identifier asks for confirmation first; -y skips the question. Later calls omit --identifier.
Every enable checks the Celigo Storage entitlement — partner uploads land in storage — and returns the account's storage usage (storageUsage) alongside the server. Requires full mode.
Signature
Arguments
None.
Flags
--identifier <name>
string
—
3–30 lowercase letters, digits, or hyphens. Required on the first enable, which makes it permanent; omit it afterwards.
-y, --yes
boolean
false
Skip the confirmation --identifier asks for.
Example
Corresponds to: PUT /v1/mft/fileserver with {"enabled": true}, plus identifier when --identifier is given.
celigo file-server disable
Disable the file server. The identifier and every account are kept, new logins are refused, and every open partner session ends. Prompts for confirmation unless -y is supplied. Requires full mode.
Signature
Arguments
None.
Flags
-y, --yes
boolean
false
Skip the confirmation prompt.
Example
Corresponds to: PUT /v1/mft/fileserver with {"enabled": false}.
celigo file-server accounts list
List every partner account, oldest first, with overCap computed against the current account cap (limits.maxAccounts in get). The API pages through a Link header of bare URLs rather than the RFC <url>; rel="next" form; the CLI follows it to the last page.
Signature
Arguments
None.
Flags
Uses global flags only.
Default table columns: _id, login, homeFolderPath, enabled, passwordSet, overCap, lastConnectedAt.
Example
Corresponds to: GET /v1/mft/fileserver/accounts — every page.
celigo file-server accounts get
Fetch one partner account by ID. The password is never returned; passwordSet says whether one exists.
Signature
Arguments
<id>
string
Yes
Partner account _id.
Flags
Uses global flags only.
Example
Corresponds to: GET /v1/mft/fileserver/accounts/{_id}
celigo file-server accounts create
Create an enabled partner account. The partner logs in as <username>@<identifier> and sees the home folder as the root of every session; while the account exists, that folder and its ancestors cannot be deleted from storage. Requires full mode.
The password is prompted for twice without echo, or read from stdin with --password-stdin — never a flag value. It needs at least 12 characters, with upper- and lower-case letters, a digit, and a symbol. Off a terminal and without --password-stdin, the command stops before any request:
--home-folder takes a storage folder's 24-character id. The API answers a malformed id with 503 FILESERVER_STORAGE_UNAVAILABLE, as if storage were down, so the CLI refuses it first:
A create that times out or fails with a 5xx is not resent — it may have landed, so check accounts list before you run it again. Since celigo-cli 2026.11.1, the same holds for a 429; earlier releases retried it.
Signature
Arguments
None.
Flags
--username <name>
string
—
Required. 3–32 lowercase letters, digits, or hyphens; unique on the server.
--home-folder <folderId>
string
—
Required. The Celigo Storage folder the partner is rooted in, as its 24-character id (celigo storage list shows them).
--password-stdin
boolean
false
Read the password from stdin instead of prompting for it.
Example
Corresponds to: POST /v1/mft/fileserver/accounts with username, password, and _homeFolderId.
celigo file-server accounts set
Change an account's username, _homeFolderId, or enabled and keep the rest. The API's PUT is partial, so only the assigned fields are sent, with no GET first.
A rename keeps the account's
_idand changes its login.A folder move (
_homeFolderId=…) orenabled=falseends the account's open sessions.enabled=truecounts against the account cap and needs a password set.
The password is not a field here — use set-password. A value typed for username or _homeFolderId stays text (username=2026 is sent as the string "2026"). The CLI refuses these before any request: any other field, a null (the three fields are required), a blank username, an enabled that is not true or false, and a malformed _homeFolderId.
set is blocked in read mode, and no account field is an operational one, so it needs full mode. See Profiles & regions.
Signature
Arguments
<id>
string
Yes
Partner account _id.
<key=value>
string
Yes (≥1)
Assignments to username, _homeFolderId, or enabled.
Flags
Uses global flags only.
Example
Corresponds to: PUT /v1/mft/fileserver/accounts/{_id} with only the assigned fields.
celigo file-server accounts set-password
Set a new password for an account — prompted for twice without echo, or read from stdin with --password-stdin, never a flag value. Or remove the password with --clear, which works only while the account is disabled: an enabled account keeps a credential. Either change ends the account's open sessions. Requires full mode.
Signature
Arguments
<id>
string
Yes
Partner account _id.
Flags
--password-stdin
boolean
false
Read the new password from stdin instead of prompting for it.
--clear
boolean
false
Remove the password instead (only while the account is disabled). Cannot be combined with --password-stdin.
Example
Corresponds to: POST /v1/mft/fileserver/accounts/{_id}/password with {"password": "<new password>"}, or {"password": null} under --clear.
celigo file-server accounts delete
Delete a partner account permanently — there is no recycle bin — and end its open session. The home folder and its files stay, and become deletable again. Prompts for confirmation unless -y is supplied. Requires full mode.
Signature
Arguments
<id>
string
Yes
Partner account _id.
Flags
-y, --yes
boolean
false
Skip the confirmation prompt.
Example
Corresponds to: DELETE /v1/mft/fileserver/accounts/{_id}
Gotchas
The identifier is permanent. The first
enable --identifier <name>fixes the name inside every partner login (<username>@<identifier>), and it cannot be changed afterwards — which is why--identifierasks for confirmation.Every route needs a full-access API token. A token scoped to particular resources gets
403 FILESERVER_FULL_ACCESS_TOKEN_REQUIRED, reads included.No add-on, no server. Without the file server add-on,
getreturns a reduced object withentitled: false. A sandbox cannot enable a server.Passwords never travel as flags. A flag value would sit in shell history and the process list. Use the no-echo prompt at a terminal, or
--password-stdinin scripts and CI.--home-folderand_homeFolderIdtake a folder id, not a path. A malformed id is refused before the request, because the API would answer it with a503that reads like a storage outage.celigo storage listshows folder ids.A home folder is protected in storage. While an account is rooted in a folder, that folder and every folder above it cannot be deleted from Celigo Storage. Delete the account, or move it to another folder, first.
disableandaccounts deleteare different.disablekeeps the identifier and every account and only ends sessions;accounts deleteremoves one account for good, with no recycle bin.Permission modes.
get,accounts list, andaccounts getwork inreadmode.enable,disable, and every otheraccountsverb needfull. See Profiles & regions.
Related
storage — the Celigo Storage folders partner accounts are rooted in;
storage listshows their ids, and partner uploads land there.
Last updated
Was this helpful?