Skip to main content

CLI Overview

The official CLI binary for Lioran S3 is liorans3, packaged as @liorans3/cli.

npm install -g @liorans3/cli@prealpha

Global Options​

The following flags can be passed to any liorans3 command:

-v, --version Output the current version of liorans3
-p, --profile <name> Select named configuration profile
-e, --endpoint <uri> Server connection URI (e.g. bastion://user:pass@host:port)
-u, --username <username> Basic authentication username
-P, --password <password> Basic authentication password
-k, --access-key <key> Programmatic Access Key ID
-s, --secret-key <secret> Programmatic Access Key Secret
--json Output results in machine-readable JSON format
-q, --quiet Suppress non-essential progress and informational messages
--no-color Disable colored terminal output
-t, --timeout <ms> Request timeout in milliseconds
-h, --help Display help for command

Exit Codes​

The CLI emits standard, deterministic exit codes suitable for automation, scripts, and CI/CD pipelines:

Exit CodeConstantMeaning
0EXIT_SUCCESSOperation completed successfully.
1EXIT_ERRORGeneral or unhandled application error.
2EXIT_USAGEInvalid command-line usage or malformed arguments.
3EXIT_AUTHAuthentication error or invalid credentials.
4EXIT_FORBIDDENPermission denied or password change required.
5EXIT_NOT_FOUNDTarget bucket, object, user, key, or upload session not found.
6EXIT_NETWORKNetwork failure, connection refused, DNS error, or timeout.
7EXIT_CONFLICTResource conflict (e.g. bucket or user already exists).
8EXIT_CAPACITYBucket quota exceeded or host storage capacity exhausted.

Command Groups​

Command GroupDescriptionPrimary Subcommands
bucketManage storage bucketslist (ls), create (mb), info (get), update, rm (delete, rb)
objectObject operationslist (ls), stat (head), put, get, cat, range, presign, rm (delete), optimize
multipartResumable chunked uploadsupload, create, status, part, complete, abort, resume
userUser account managementlist (ls), get (info), create, update, enable, disable, rm, passwd, reset-password
keyAccess key managementlist (ls), get (info), create, rotate, revoke (rm)
profileNamed configuration profileslist, show (get), create, use, rename, delete (remove)
configureInteractive configurationSetup server endpoint and credentials
diagnosticsHealth and diagnosticsdoctor, ping, whoami, system health, system info, system performance, system metrics

Machine-Readable JSON Output​

Every CLI command supports the --json flag, printing structured JSON payloads directly to stdout without decorative tables or logs:

liorans3 bucket ls --json
[
{
"name": "assets",
"owner": "admin",
"quota_bytes": 53687091200,
"versioning_enabled": false,
"created_at": "2026-10-01T12:00:00.000Z"
}
]