Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 88 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $ npm install -g @internxt/cli
$ internxt COMMAND
running command...
$ internxt (--version)
@internxt/cli/1.6.0 win32-x64 node-v24.3.0
@internxt/cli/1.6.2 win32-x64 node-v24.3.0
$ internxt --help [COMMAND]
USAGE
$ internxt COMMAND
Expand Down Expand Up @@ -103,7 +103,9 @@ USAGE
* [`internxt trash restore file`](#internxt-trash-restore-file)
* [`internxt trash restore folder`](#internxt-trash-restore-folder)
* [`internxt upload-file`](#internxt-upload-file)
* [`internxt upload-folder`](#internxt-upload-folder)
* [`internxt upload file`](#internxt-upload-file)
* [`internxt upload folder`](#internxt-upload-folder)
* [`internxt webdav ACTION`](#internxt-webdav-action)
* [`internxt webdav-config`](#internxt-webdav-config)
* [`internxt whoami`](#internxt-whoami)
Expand All @@ -126,7 +128,7 @@ EXAMPLES
$ internxt add-cert
```

_See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/add-cert.ts)_
_See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/add-cert.ts)_

## `internxt autocomplete [SHELL]`

Expand Down Expand Up @@ -177,7 +179,7 @@ EXAMPLES
$ internxt config
```

_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/config.ts)_
_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/config.ts)_

## `internxt create-folder`

Expand Down Expand Up @@ -206,7 +208,7 @@ EXAMPLES
$ internxt create-folder
```

_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/create-folder.ts)_
_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/create-folder.ts)_

## `internxt delete-permanently-file`

Expand Down Expand Up @@ -236,7 +238,7 @@ EXAMPLES
$ internxt delete-permanently-file
```

_See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/delete-permanently-file.ts)_
_See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/delete-permanently-file.ts)_

## `internxt delete-permanently-folder`

Expand Down Expand Up @@ -266,7 +268,7 @@ EXAMPLES
$ internxt delete-permanently-folder
```

_See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/delete-permanently-folder.ts)_
_See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/delete-permanently-folder.ts)_

## `internxt delete permanently file`

Expand Down Expand Up @@ -355,7 +357,7 @@ EXAMPLES
$ internxt download-file
```

_See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/download-file.ts)_
_See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/download-file.ts)_

## `internxt download file`

Expand Down Expand Up @@ -414,7 +416,7 @@ EXAMPLES
$ internxt list
```

_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/list.ts)_
_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/list.ts)_

## `internxt login`

Expand Down Expand Up @@ -442,7 +444,7 @@ EXAMPLES
$ internxt login
```

_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/login.ts)_
_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/login.ts)_

## `internxt login-legacy`

Expand Down Expand Up @@ -474,7 +476,7 @@ EXAMPLES
$ internxt login-legacy
```

_See code: [src/commands/login-legacy.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/login-legacy.ts)_
_See code: [src/commands/login-legacy.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/login-legacy.ts)_

## `internxt logout`

Expand All @@ -494,7 +496,7 @@ EXAMPLES
$ internxt logout
```

_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/logout.ts)_
_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/logout.ts)_

## `internxt logs`

Expand All @@ -514,7 +516,7 @@ EXAMPLES
$ internxt logs
```

_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/logs.ts)_
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/logs.ts)_

## `internxt move-file`

Expand Down Expand Up @@ -546,7 +548,7 @@ EXAMPLES
$ internxt move-file
```

_See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/move-file.ts)_
_See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/move-file.ts)_

## `internxt move-folder`

Expand Down Expand Up @@ -578,7 +580,7 @@ EXAMPLES
$ internxt move-folder
```

_See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/move-folder.ts)_
_See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/move-folder.ts)_

## `internxt move file`

Expand Down Expand Up @@ -669,7 +671,7 @@ EXAMPLES
$ internxt rename-file
```

_See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/rename-file.ts)_
_See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/rename-file.ts)_

## `internxt rename-folder`

Expand Down Expand Up @@ -700,7 +702,7 @@ EXAMPLES
$ internxt rename-folder
```

_See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/rename-folder.ts)_
_See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/rename-folder.ts)_

## `internxt rename file`

Expand Down Expand Up @@ -788,7 +790,7 @@ EXAMPLES
$ internxt trash-clear
```

_See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-clear.ts)_
_See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/trash-clear.ts)_

## `internxt trash-file`

Expand Down Expand Up @@ -818,7 +820,7 @@ EXAMPLES
$ internxt trash-file
```

_See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-file.ts)_
_See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/trash-file.ts)_

## `internxt trash-folder`

Expand Down Expand Up @@ -848,7 +850,7 @@ EXAMPLES
$ internxt trash-folder
```

_See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-folder.ts)_
_See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/trash-folder.ts)_

## `internxt trash-list`

Expand All @@ -874,7 +876,7 @@ EXAMPLES
$ internxt trash-list
```

_See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-list.ts)_
_See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/trash-list.ts)_

## `internxt trash-restore-file`

Expand Down Expand Up @@ -905,7 +907,7 @@ EXAMPLES
$ internxt trash-restore-file
```

_See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-restore-file.ts)_
_See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/trash-restore-file.ts)_

## `internxt trash-restore-folder`

Expand Down Expand Up @@ -936,7 +938,7 @@ EXAMPLES
$ internxt trash-restore-folder
```

_See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/trash-restore-folder.ts)_
_See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/trash-restore-folder.ts)_

## `internxt trash clear`

Expand Down Expand Up @@ -1133,7 +1135,38 @@ EXAMPLES
$ internxt upload-file
```

_See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/upload-file.ts)_
_See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/upload-file.ts)_

## `internxt upload-folder`

Upload a folder to Internxt Drive

```
USAGE
$ internxt upload-folder [--json] [-x] [-f <value>] [-i <value>]

FLAGS
-f, --folder=<value> The path to the folder on your system.
-i, --destination=<value> The folder id where the folder is going to be uploaded to. Leave empty for the root folder.

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](https://github.com/internxt/cli/blob/v1.6.2/src/commands/upload-folder.ts)_

## `internxt upload file`

Expand Down Expand Up @@ -1164,6 +1197,35 @@ EXAMPLES
$ internxt upload file
```

## `internxt upload folder`

Upload a folder to Internxt Drive

```
USAGE
$ internxt upload folder [--json] [-x] [-f <value>] [-i <value>]

FLAGS
-f, --folder=<value> The path to the folder on your system.
-i, --destination=<value> The folder id where the folder is going to be uploaded to. Leave empty for the root folder.

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
```

## `internxt webdav ACTION`

Enable, disable, restart or get the status of the Internxt CLI WebDav server
Expand All @@ -1188,7 +1250,7 @@ EXAMPLES
$ internxt webdav status
```

_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/webdav.ts)_
_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/webdav.ts)_

## `internxt webdav-config`

Expand Down Expand Up @@ -1216,7 +1278,7 @@ EXAMPLES
$ internxt webdav-config
```

_See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/webdav-config.ts)_
_See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/webdav-config.ts)_

## `internxt whoami`

Expand All @@ -1236,7 +1298,7 @@ EXAMPLES
$ internxt whoami
```

_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.6.0/src/commands/whoami.ts)_
_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.6.2/src/commands/whoami.ts)_
<!-- commandsstop -->

# Current Limitations
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Internxt <hello@internxt.com>",
"version": "1.6.1",
"version": "1.6.2",
"description": "Internxt CLI to manage your encrypted storage",
"scripts": {
"build": "yarn clean && tsc",
Expand Down Expand Up @@ -39,12 +39,12 @@
"@inquirer/prompts": "8.1.0",
"@internxt/inxt-js": "2.2.9",
"@internxt/lib": "1.4.1",
"@internxt/sdk": "1.11.25",
"@internxt/sdk": "1.12.0",
"@oclif/core": "4.8.0",
"@oclif/plugin-autocomplete": "3.2.39",
"axios": "1.13.2",
"bip39": "3.1.0",
"body-parser": "2.2.1",
"body-parser": "2.2.2",
"cli-progress": "3.12.0",
"dayjs": "1.11.19",
"dotenv": "17.2.3",
Expand All @@ -57,7 +57,7 @@
"otpauth": "9.4.1",
"pm2": "6.0.14",
"range-parser": "1.2.1",
"selfsigned": "5.2.0",
"selfsigned": "5.4.0",
"tty-table": "5.0.0",
"winston": "3.19.0"
},
Expand All @@ -76,7 +76,7 @@
"husky": "9.1.7",
"lint-staged": "16.2.7",
"nodemon": "3.1.11",
"oclif": "4.22.61",
"oclif": "4.22.63",
"prettier": "3.7.4",
"rimraf": "6.1.2",
"ts-node": "10.9.2",
Expand Down
21 changes: 10 additions & 11 deletions src/utils/network.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,16 @@ export class NetworkUtils {

static async generateSelfSignedSSLCerts(configs: WebdavConfig): Promise<selfsigned.GenerateResult> {
const attrs = [{ name: 'commonName', value: configs.host }];
const extensions = [
{
name: 'subjectAltName',
altNames: [
{
type: 2,
value: configs.host,
},
],
},
];
const extension: selfsigned.SubjectAltNameExtension = {
name: 'subjectAltName',
altNames: [
{
type: 2,
value: configs.host,
},
],
};
const extensions: selfsigned.CertificateExtension[] = [extension];
const notAfterDate = new Date();
notAfterDate.setDate(notAfterDate.getDate() + 365);
const pems = await selfsigned.generate(attrs, { notAfterDate, algorithm: 'sha256', keySize: 2048, extensions });
Expand Down
Loading