@internxt/cli v1.5.3
Internxt CLI
A CLI tool to interact with your Internxt encrypted files
Installation
You can install the Internxt CLI by using NPM:
Requires Node >= 20.12.1
npm i -g @internxt/cli
View Internxt CLI latest release here
Usage
$ npm install -g @internxt/cli
$ internxt COMMAND
running command...
$ internxt (--version)
@internxt/cli/1.5.3 linux-x64 node-v20.19.1
$ internxt --help [COMMAND]
USAGE
$ internxt COMMAND
...Commands
internxt add-certinternxt configinternxt create-folderinternxt delete-permanently-fileinternxt delete-permanently-folderinternxt delete permanently fileinternxt delete permanently folderinternxt download-fileinternxt download fileinternxt listinternxt logininternxt logoutinternxt logsinternxt move-fileinternxt move-folderinternxt move fileinternxt move folderinternxt rename-fileinternxt rename-folderinternxt rename fileinternxt rename folderinternxt trash-clearinternxt trash-fileinternxt trash-folderinternxt trash-listinternxt trash-restore-fileinternxt trash-restore-folderinternxt trash clearinternxt trash fileinternxt trash folderinternxt trash listinternxt trash restore fileinternxt trash restore folderinternxt upload-fileinternxt upload fileinternxt webdav ACTIONinternxt webdav-configinternxt whoami
internxt add-cert
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-certSee code: src/commands/add-cert.ts
internxt config
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 configSee code: src/commands/config.ts
internxt create-folder
Create a folder in your Internxt Drive
USAGE
$ internxt create-folder [--json] [-x] [-n <value>] [-i <value>]
FLAGS
-i, --id=<value> The ID of the folder where the new folder will be created. Defaults to your root folder if not
specified.
-n, --name=<value> The new name for the folder
HELPER FLAGS
-x, --non-interactive 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-folderSee code: src/commands/create-folder.ts
internxt delete-permanently-file
Deletes permanently a file. This action cannot be undone.
USAGE
$ internxt delete-permanently-file [--json] [-x] [-i <value>]
FLAGS
-i, --id=<value> The file id to be permanently deleted.
HELPER FLAGS
-x, --non-interactive 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-fileSee code: src/commands/delete-permanently-file.ts
internxt delete-permanently-folder
Deletes permanently a folder. This action cannot be undone.
USAGE
$ internxt delete-permanently-folder [--json] [-x] [-i <value>]
FLAGS
-i, --id=<value> The folder id to be permanently deleted.
HELPER FLAGS
-x, --non-interactive 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-folderSee code: src/commands/delete-permanently-folder.ts
internxt delete permanently file
Deletes permanently a file. This action cannot be undone.
USAGE
$ internxt delete permanently file [--json] [-x] [-i <value>]
FLAGS
-i, --id=<value> The file id to be permanently deleted.
HELPER FLAGS
-x, --non-interactive 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 fileinternxt delete permanently folder
Deletes permanently a folder. This action cannot be undone.
USAGE
$ internxt delete permanently folder [--json] [-x] [-i <value>]
FLAGS
-i, --id=<value> The folder id to be permanently deleted.
HELPER FLAGS
-x, --non-interactive 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 folderinternxt download-file
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 <value>] [-d <value>] [-o]
FLAGS
-d, --directory=<value> The directory to download the file to. Leave empty for the current folder.
-i, --id=<value> The id of the file to download. Use internxt list to view your files ids
-o, --overwrite Overwrite the file if it already exists
HELPER FLAGS
-x, --non-interactive 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-fileSee code: src/commands/download-file.ts
internxt download file
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 <value>] [-d <value>] [-o]
FLAGS
-d, --directory=<value> The directory to download the file to. Leave empty for the current folder.
-i, --id=<value> The id of the file to download. Use internxt list to view your files ids
-o, --overwrite Overwrite the file if it already exists
HELPER FLAGS
-x, --non-interactive 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 fileinternxt list
Lists the content of a folder id.
USAGE
$ internxt list [--json] [-x] [-i <value>] [-e]
FLAGS
-e, --extended Displays additional information in the list.
-i, --id=<value> The folder id to list. Leave empty for the root folder.
HELPER FLAGS
-x, --non-interactive 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 listSee code: src/commands/list.ts
internxt login
Logs into an Internxt account. If the account is two-factor protected, then an extra code will be required.
USAGE
$ internxt login [--json] [-x] [-e <value>] [-p <value>] [-w 123456]
FLAGS
-e, --email=<value> The email to log in
-p, --password=<value> The plain password to log in
-w, --twofactor=123456 The two factor auth code (only needed if the account is two-factor protected)
HELPER FLAGS
-x, --non-interactive 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
Logs into an Internxt account. If the account is two-factor protected, then an extra code will be required.
EXAMPLES
$ internxt loginSee code: src/commands/login.ts
internxt logout
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 logoutSee code: src/commands/logout.ts
internxt logs
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 logsSee code: src/commands/logs.ts
internxt move-file
Move a file into a destination folder.
USAGE
$ internxt move-file [--json] [-x] [-i <value>] [-d <value>]
FLAGS
-d, --destination=<value> The destination folder id where the file is going to be moved. Leave empty for the root
folder.
-i, --id=<value> The ID of the file to be moved.
HELPER FLAGS
-x, --non-interactive 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-fileSee code: src/commands/move-file.ts
internxt move-folder
Move a folder into a destination folder.
USAGE
$ internxt move-folder [--json] [-x] [-i <value>] [-d <value>]
FLAGS
-d, --destination=<value> The destination folder id where the folder is going to be moved. Leave empty for the root
folder.
-i, --id=<value> The ID of the folder to be moved.
HELPER FLAGS
-x, --non-interactive 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-folderSee code: src/commands/move-folder.ts
internxt move file
Move a file into a destination folder.
USAGE
$ internxt move file [--json] [-x] [-i <value>] [-d <value>]
FLAGS
-d, --destination=<value> The destination folder id where the file is going to be moved. Leave empty for the root
folder.
-i, --id=<value> The ID of the file to be moved.
HELPER FLAGS
-x, --non-interactive 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 fileinternxt move folder
Move a folder into a destination folder.
USAGE
$ internxt move folder [--json] [-x] [-i <value>] [-d <value>]
FLAGS
-d, --destination=<value> The destination folder id where the folder is going to be moved. Leave empty for the root
folder.
-i, --id=<value> The ID of the folder to be moved.
HELPER FLAGS
-x, --non-interactive 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 folderinternxt rename-file
Rename a file.
USAGE
$ internxt rename-file [--json] [-x] [-i <value>] [-n <value>]
FLAGS
-i, --id=<value> The ID of the file to be renamed.
-n, --name=<value> The new name for the file.
HELPER FLAGS
-x, --non-interactive 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-fileSee code: src/commands/rename-file.ts
internxt rename-folder
Rename a folder.
USAGE
$ internxt rename-folder [--json] [-x] [-i <value>] [-n <value>]
FLAGS
-i, --id=<value> The ID of the folder to be renamed.
-n, --name=<value> The new name for the folder.
HELPER FLAGS
-x, --non-interactive 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-folderSee code: src/commands/rename-folder.ts
internxt rename file
Rename a file.
USAGE
$ internxt rename file [--json] [-x] [-i <value>] [-n <value>]
FLAGS
-i, --id=<value> The ID of the file to be renamed.
-n, --name=<value> The new name for the file.
HELPER FLAGS
-x, --non-interactive 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 fileinternxt rename folder
Rename a folder.
USAGE
$ internxt rename folder [--json] [-x] [-i <value>] [-n <value>]
FLAGS
-i, --id=<value> The ID of the folder to be renamed.
-n, --name=<value> The new name for the folder.
HELPER FLAGS
-x, --non-interactive 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 folderinternxt trash-clear
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 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-clearSee code: src/commands/trash-clear.ts
internxt trash-file
Moves a given file to the trash.
USAGE
$ internxt trash-file [--json] [-x] [-i <value>]
FLAGS
-i, --id=<value> The file id to be trashed.
HELPER FLAGS
-x, --non-interactive 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-fileSee code: src/commands/trash-file.ts
internxt trash-folder
Moves a given folder to the trash.
USAGE
$ internxt trash-folder [--json] [-x] [-i <value>]
FLAGS
-i, --id=<value> The folder id to be trashed.
HELPER FLAGS
-x, --non-interactive 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-folderSee code: src/commands/trash-folder.ts
internxt trash-list
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-listSee code: src/commands/trash-list.ts
internxt trash-restore-file
Restore a trashed file into a destination folder.
USAGE
$ internxt trash-restore-file [--json] [-x] [-i <value>] [-d <value>]
FLAGS
-d, --destination=<value> The folder id where the file is going to be restored. Leave empty for the root folder.
-i, --id=<value> The file id to be restored from the trash.
HELPER FLAGS
-x, --non-interactive 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-fileSee code: src/commands/trash-restore-file.ts
internxt trash-restore-folder
Restore a trashed folder into a destination folder.
USAGE
$ internxt trash-restore-folder [--json] [-x] [-i <value>] [-d <value>]
FLAGS
-d, --destination=<value> The folder id where the folder is going to be restored. Leave empty for the root folder.
-i, --id=<value> The folder id to be restored from the trash.
HELPER FLAGS
-x, --non-interactive 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-folderSee code: src/commands/trash-restore-folder.ts
internxt trash clear
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 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 clearinternxt trash file
Moves a given file to the trash.
USAGE
$ internxt trash file [--json] [-x] [-i <value>]
FLAGS
-i, --id=<value> The file id to be trashed.
HELPER FLAGS
-x, --non-interactive 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 fileinternxt trash folder
Moves a given folder to the trash.
USAGE
$ internxt trash folder [--json] [-x] [-i <value>]
FLAGS
-i, --id=<value> The folder id to be trashed.
HELPER FLAGS
-x, --non-interactive 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 folderinternxt trash list
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 listinternxt trash restore file
Restore a trashed file into a destination folder.
USAGE
$ internxt trash restore file [--json] [-x] [-i <value>] [-d <value>]
FLAGS
-d, --destination=<value> The folder id where the file is going to be restored. Leave empty for the root folder.
-i, --id=<value> The file id to be restored from the trash.
HELPER FLAGS
-x, --non-interactive 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 fileinternxt trash restore folder
Restore a trashed folder into a destination folder.
USAGE
$ internxt trash restore folder [--json] [-x] [-i <value>] [-d <value>]
FLAGS
-d, --destination=<value> The folder id where the folder is going to be restored. Leave empty for the root folder.
-i, --id=<value> The folder id to be restored from the trash.
HELPER FLAGS
-x, --non-interactive 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 folderinternxt upload-file
Upload a file to Internxt Drive
USAGE
$ internxt upload-file [--json] [-x] [-f <value>] [-i <value>]
FLAGS
-f, --file=<value> The path to the file on your system.
-i, --destination=<value> The folder id where the file is going to be uploaded to. Leave empty for the root folder.
HELPER FLAGS
-x, --non-interactive 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-fileSee code: src/commands/upload-file.ts
internxt upload file
Upload a file to Internxt Drive
USAGE
$ internxt upload file [--json] [-x] [-f <value>] [-i <value>]
FLAGS
-f, --file=<value> The path to the file on your system.
-i, --destination=<value> The folder id where the file is going to be uploaded to. Leave empty for the root folder.
HELPER FLAGS
-x, --non-interactive 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 fileinternxt webdav ACTION
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 statusSee code: src/commands/webdav.ts
internxt webdav-config
Edit the configuration of the Internxt CLI WebDav server as the port or the protocol.
USAGE
$ internxt webdav-config [--json] [-p <value>] [-s | -h] [-t <value>]
FLAGS
-h, --http Configures the WebDAV server to use insecure plain HTTP.
-p, --port=<value> The new port for the WebDAV server.
-s, --https Configures the WebDAV server to use HTTPS with self-signed certificates.
-t, --timeout=<value> Configures the WebDAV server to use this timeout in minutes.
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-configSee code: src/commands/webdav-config.ts
internxt whoami
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 whoamiSee code: src/commands/whoami.ts
Current Limitations
- We currently have a 20GB size upload limitation per file for both, CLI and WebDAV
11 months ago
11 months ago
11 months ago
6 months ago
6 months ago
8 months ago
12 months ago
10 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago