Internxt CLI to manage your encrypted storage
npm install @internxt/cli

A CLI tool to interact with your Internxt encrypted files
* Internxt CLI
* Project Maintenance
* Installation
* Usage
* Docker
* Commands
* Current Limitations







We aim to achieve:
- An 'A' rating in Maintainability
- An 'A' rating in Security
- Less than 3% duplicated lines
- At least 80% test coverage
You can install the Internxt CLI by using NPM:
Requires Node >= 22.13.0
npm i -g @internxt/cli
View Internxt CLI latest release here
``sh-session`
$ npm install -g @internxt/cli
$ internxt COMMAND
running command...
$ internxt (--version)
@internxt/cli/1.6.2 linux-x64 node-v22.22.0
$ internxt --help [COMMAND]
USAGE
$ internxt COMMAND
...
Internxt WebDAV (Docker Integration)
* internxt add-cert
* [internxt autocomplete [SHELL]](#internxt-autocomplete-shell)internxt config
* internxt create-folder
* internxt delete-permanently-file
* internxt delete-permanently-folder
* internxt delete permanently file
* internxt delete permanently folder
* internxt download-file
* internxt download file
* internxt list
* internxt login
* internxt login-legacy
* internxt logout
* internxt logs
* internxt move-file
* internxt move-folder
* internxt move file
* internxt move folder
* internxt rename-file
* internxt rename-folder
* internxt rename file
* internxt rename folder
* internxt trash-clear
* internxt trash-file
* internxt trash-folder
* internxt trash-list
* internxt trash-restore-file
* internxt trash-restore-folder
* internxt trash clear
* internxt trash file
* internxt trash folder
* internxt trash list
* internxt trash restore file
* internxt trash restore folder
* internxt upload-file
* internxt upload-folder
* internxt upload file
* internxt upload folder
* internxt webdav ACTION
* internxt webdav-config
* internxt whoami
*
Add a self-signed certificate to the trusted store for macOS, Linux, and Windows.
`
USAGE
$ internxt add-cert [--json]
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Add a self-signed certificate to the trusted store for macOS, Linux, and Windows.
EXAMPLES
$ internxt add-cert
`
_See code: src/commands/add-cert.ts_
Display autocomplete installation instructions.
`
USAGE
$ internxt autocomplete [SHELL] [-r]
ARGUMENTS
[SHELL] (zsh|bash|powershell) Shell type
FLAGS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
DESCRIPTION
Display autocomplete installation instructions.
EXAMPLES
$ internxt autocomplete
$ internxt autocomplete bash
$ internxt autocomplete zsh
$ internxt autocomplete powershell
$ internxt autocomplete --refresh-cache
`
_See code: @oclif/plugin-autocomplete_
Display useful information from the user logged into the Internxt CLI.
`
USAGE
$ internxt config [--json]
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Display useful information from the user logged into the Internxt CLI.
EXAMPLES
$ internxt config
`
_See code: src/commands/config.ts_
Create a folder in your Internxt Drive
`
USAGE
$ internxt create-folder [--json] [-x] [-n
FLAGS
-i, --id=
specified.
-n, --name=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Create a folder in your Internxt Drive
EXAMPLES
$ internxt create-folder
`
_See code: src/commands/create-folder.ts_
Deletes permanently a file. This action cannot be undone.
`
USAGE
$ internxt delete-permanently-file [--json] [-x] [-i
FLAGS
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Deletes permanently a file. This action cannot be undone.
ALIASES
$ internxt delete permanently file
EXAMPLES
$ internxt delete-permanently-file
`
_See code: src/commands/delete-permanently-file.ts_
Deletes permanently a folder. This action cannot be undone.
`
USAGE
$ internxt delete-permanently-folder [--json] [-x] [-i
FLAGS
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Deletes permanently a folder. This action cannot be undone.
ALIASES
$ internxt delete permanently folder
EXAMPLES
$ internxt delete-permanently-folder
`
_See code: src/commands/delete-permanently-folder.ts_
Deletes permanently a file. This action cannot be undone.
`
USAGE
$ internxt delete permanently file [--json] [-x] [-i
FLAGS
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Deletes permanently a file. This action cannot be undone.
ALIASES
$ internxt delete permanently file
EXAMPLES
$ internxt delete permanently file
`
Deletes permanently a folder. This action cannot be undone.
`
USAGE
$ internxt delete permanently folder [--json] [-x] [-i
FLAGS
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Deletes permanently a folder. This action cannot be undone.
ALIASES
$ internxt delete permanently folder
EXAMPLES
$ internxt delete permanently folder
`
Download and decrypts a file from Internxt Drive to a directory. The file name will be the same as the file name in your Drive.
`
USAGE
$ internxt download-file [--json] [-x] [-i
FLAGS
-d, --directory=
-i, --id=
-o, --overwrite Overwrite the file if it already exists
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Download and decrypts a file from Internxt Drive to a directory. The file name will be the same as the file name in
your Drive.
ALIASES
$ internxt download file
EXAMPLES
$ internxt download-file
`
_See code: src/commands/download-file.ts_
Download and decrypts a file from Internxt Drive to a directory. The file name will be the same as the file name in your Drive.
`
USAGE
$ internxt download file [--json] [-x] [-i
FLAGS
-d, --directory=
-i, --id=
-o, --overwrite Overwrite the file if it already exists
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Download and decrypts a file from Internxt Drive to a directory. The file name will be the same as the file name in
your Drive.
ALIASES
$ internxt download file
EXAMPLES
$ internxt download file
`
Lists the content of a folder id.
`
USAGE
$ internxt list [--json] [-x] [-i
FLAGS
-e, --extended Displays additional information in the list.
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Lists the content of a folder id.
EXAMPLES
$ internxt list
`
_See code: src/commands/list.ts_
Logs into your Internxt account using the web-based login flow. A temporary local server is started to securely receive the authentication response.
`
USAGE
$ internxt login [--json] [-h
FLAGS
-h, --host=
opening the login page in a browser on another device, set this to the IP address of the machine
running the CLI. Defaults to 127.0.0.1.
-p, --port=
callback. If not specified, a random available port will be used automatically.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Logs into your Internxt account using the web-based login flow. A temporary local server is started to securely
receive the authentication response.
EXAMPLES
$ internxt login
`
_See code: src/commands/login.ts_
[Legacy] Logs into an Internxt account using user and password. If the account is two-factor protected, then an extra code will be required.
`
USAGE
$ internxt login-legacy [--json] [-x] [-e
FLAGS
-e, --email=
-p, --password=
-t, --twofactortoken=token [env: INXT_OTPTOKEN] The TOTP secret token. It is used to generate a TOTP code if needed.
It has prority over the two factor code flag.
-w, --twofactor=123456 [env: INXT_TWOFACTORCODE] The two factor auth code (TOTP).
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
[Legacy] Logs into an Internxt account using user and password. If the account is two-factor protected, then an extra
code will be required.
EXAMPLES
$ internxt login-legacy
`
_See code: src/commands/login-legacy.ts_
Logs out the current internxt user that is logged into the Internxt CLI.
`
USAGE
$ internxt logout [--json]
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Logs out the current internxt user that is logged into the Internxt CLI.
EXAMPLES
$ internxt logout
`
_See code: src/commands/logout.ts_
Displays the Internxt CLI logs directory path
`
USAGE
$ internxt logs [--json]
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Displays the Internxt CLI logs directory path
EXAMPLES
$ internxt logs
`
_See code: src/commands/logs.ts_
Move a file into a destination folder.
`
USAGE
$ internxt move-file [--json] [-x] [-i
FLAGS
-d, --destination=
folder.
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Move a file into a destination folder.
ALIASES
$ internxt move file
EXAMPLES
$ internxt move-file
`
_See code: src/commands/move-file.ts_
Move a folder into a destination folder.
`
USAGE
$ internxt move-folder [--json] [-x] [-i
FLAGS
-d, --destination=
folder.
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Move a folder into a destination folder.
ALIASES
$ internxt move folder
EXAMPLES
$ internxt move-folder
`
_See code: src/commands/move-folder.ts_
Move a file into a destination folder.
`
USAGE
$ internxt move file [--json] [-x] [-i
FLAGS
-d, --destination=
folder.
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Move a file into a destination folder.
ALIASES
$ internxt move file
EXAMPLES
$ internxt move file
`
Move a folder into a destination folder.
`
USAGE
$ internxt move folder [--json] [-x] [-i
FLAGS
-d, --destination=
folder.
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Move a folder into a destination folder.
ALIASES
$ internxt move folder
EXAMPLES
$ internxt move folder
`
Rename a file.
`
USAGE
$ internxt rename-file [--json] [-x] [-i
FLAGS
-i, --id=
-n, --name=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Rename a file.
ALIASES
$ internxt rename file
EXAMPLES
$ internxt rename-file
`
_See code: src/commands/rename-file.ts_
Rename a folder.
`
USAGE
$ internxt rename-folder [--json] [-x] [-i
FLAGS
-i, --id=
-n, --name=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Rename a folder.
ALIASES
$ internxt rename folder
EXAMPLES
$ internxt rename-folder
`
_See code: src/commands/rename-folder.ts_
Rename a file.
`
USAGE
$ internxt rename file [--json] [-x] [-i
FLAGS
-i, --id=
-n, --name=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Rename a file.
ALIASES
$ internxt rename file
EXAMPLES
$ internxt rename file
`
Rename a folder.
`
USAGE
$ internxt rename folder [--json] [-x] [-i
FLAGS
-i, --id=
-n, --name=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Rename a folder.
ALIASES
$ internxt rename folder
EXAMPLES
$ internxt rename folder
`
Deletes permanently all the content of the trash. This action cannot be undone.
`
USAGE
$ internxt trash-clear [--json] [-x] [-f]
FLAGS
-f, --force It forces the trash to be emptied without confirmation.
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Deletes permanently all the content of the trash. This action cannot be undone.
ALIASES
$ internxt trash clear
EXAMPLES
$ internxt trash-clear
`
_See code: src/commands/trash-clear.ts_
Moves a given file to the trash.
`
USAGE
$ internxt trash-file [--json] [-x] [-i
FLAGS
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Moves a given file to the trash.
ALIASES
$ internxt trash file
EXAMPLES
$ internxt trash-file
`
_See code: src/commands/trash-file.ts_
Moves a given folder to the trash.
`
USAGE
$ internxt trash-folder [--json] [-x] [-i
FLAGS
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Moves a given folder to the trash.
ALIASES
$ internxt trash folder
EXAMPLES
$ internxt trash-folder
`
_See code: src/commands/trash-folder.ts_
Lists the content of the trash.
`
USAGE
$ internxt trash-list [--json] [-e]
FLAGS
-e, --extended Displays additional information in the trash list.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Lists the content of the trash.
ALIASES
$ internxt trash list
EXAMPLES
$ internxt trash-list
`
_See code: src/commands/trash-list.ts_
Restore a trashed file into a destination folder.
`
USAGE
$ internxt trash-restore-file [--json] [-x] [-i
FLAGS
-d, --destination=
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Restore a trashed file into a destination folder.
ALIASES
$ internxt trash restore file
EXAMPLES
$ internxt trash-restore-file
`
_See code: src/commands/trash-restore-file.ts_
Restore a trashed folder into a destination folder.
`
USAGE
$ internxt trash-restore-folder [--json] [-x] [-i
FLAGS
-d, --destination=
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Restore a trashed folder into a destination folder.
ALIASES
$ internxt trash restore folder
EXAMPLES
$ internxt trash-restore-folder
`
_See code: src/commands/trash-restore-folder.ts_
Deletes permanently all the content of the trash. This action cannot be undone.
`
USAGE
$ internxt trash clear [--json] [-x] [-f]
FLAGS
-f, --force It forces the trash to be emptied without confirmation.
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Deletes permanently all the content of the trash. This action cannot be undone.
ALIASES
$ internxt trash clear
EXAMPLES
$ internxt trash clear
`
Moves a given file to the trash.
`
USAGE
$ internxt trash file [--json] [-x] [-i
FLAGS
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Moves a given file to the trash.
ALIASES
$ internxt trash file
EXAMPLES
$ internxt trash file
`
Moves a given folder to the trash.
`
USAGE
$ internxt trash folder [--json] [-x] [-i
FLAGS
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Moves a given folder to the trash.
ALIASES
$ internxt trash folder
EXAMPLES
$ internxt trash folder
`
Lists the content of the trash.
`
USAGE
$ internxt trash list [--json] [-e]
FLAGS
-e, --extended Displays additional information in the trash list.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Lists the content of the trash.
ALIASES
$ internxt trash list
EXAMPLES
$ internxt trash list
`
Restore a trashed file into a destination folder.
`
USAGE
$ internxt trash restore file [--json] [-x] [-i
FLAGS
-d, --destination=
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Restore a trashed file into a destination folder.
ALIASES
$ internxt trash restore file
EXAMPLES
$ internxt trash restore file
`
Restore a trashed folder into a destination folder.
`
USAGE
$ internxt trash restore folder [--json] [-x] [-i
FLAGS
-d, --destination=
-i, --id=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Restore a trashed folder into a destination folder.
ALIASES
$ internxt trash restore folder
EXAMPLES
$ internxt trash restore folder
`
Upload a file to Internxt Drive
`
USAGE
$ internxt upload-file [--json] [-x] [-f
FLAGS
-f, --file=
-i, --destination=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Upload a file to Internxt Drive
ALIASES
$ internxt upload file
EXAMPLES
$ internxt upload-file
`
_See code: src/commands/upload-file.ts_
Upload a folder to Internxt Drive
`
USAGE
$ internxt upload-folder [--json] [-x] [-f
FLAGS
-f, --folder=
-i, --destination=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Upload a folder to Internxt Drive
ALIASES
$ internxt upload folder
EXAMPLES
$ internxt upload-folder
`
_See code: src/commands/upload-folder.ts_
Upload a file to Internxt Drive
`
USAGE
$ internxt upload file [--json] [-x] [-f
FLAGS
-f, --file=
-i, --destination=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Upload a file to Internxt Drive
ALIASES
$ internxt upload file
EXAMPLES
$ internxt upload file
`
Upload a folder to Internxt Drive
`
USAGE
$ internxt upload folder [--json] [-x] [-f
FLAGS
-f, --folder=
-i, --destination=
HELPER FLAGS
-x, --non-interactive [env: INXT_NONINTERACTIVE] Prevents the CLI from being interactive. When enabled, the CLI will
not request input through the console and will throw errors directly.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Upload a folder to Internxt Drive
ALIASES
$ internxt upload folder
EXAMPLES
$ internxt upload folder
`
Enable, disable, restart or get the status of the Internxt CLI WebDav server
`
USAGE
$ internxt webdav ACTION [--json]
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Enable, disable, restart or get the status of the Internxt CLI WebDav server
EXAMPLES
$ internxt webdav enable
$ internxt webdav disable
$ internxt webdav restart
$ internxt webdav status
`
_See code: src/commands/webdav.ts_
Edit the configuration of the Internxt CLI WebDav server as the port or the protocol.
`
USAGE
$ internxt webdav-config [--json] [-l
FLAGS
-c, --[no-]createFullPath Auto-create missing parent directories during file uploads.
-h, --http Configures the WebDAV server to use insecure plain HTTP.
-l, --host=
-p, --port=
-s, --https Configures the WebDAV server to use HTTPS with self-signed certificates.
-t, --timeout=
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Edit the configuration of the Internxt CLI WebDav server as the port or the protocol.
EXAMPLES
$ internxt webdav-config
`
_See code: src/commands/webdav-config.ts_
Display the current user logged into the Internxt CLI.
`
USAGE
$ internxt whoami [--json]
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Display the current user logged into the Internxt CLI.
EXAMPLES
$ internxt whoami
``
_See code: src/commands/whoami.ts_
- We currently have a 20GB size upload limitation per file for both, CLI and WebDAV