@internxt/cli
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Internxt CLI

Commands Unit Tests CodeQL

A CLI tool to interact with yout Internxt encrypted files

Installation

Binaries and specific installers are available in the latest release:

View Internxt CLI latest release here

You can install the Internxt CLI in different ways:

NPM

Requires Node >= 20.0.0

npm i -g @internxt/cli

Usage

$ npm install -g @internxt/cli
$ internxt COMMAND
running command...
$ internxt (--version)
@internxt/cli/1.0.0 darwin-arm64 node-v20.10.0
$ internxt --help [COMMAND]
USAGE
  $ internxt COMMAND
...

Commands

internxt config

Display useful information from the user logged into the Internxt CLI.

USAGE
  $ internxt config [--columns <value> | -x] [--filter <value>] [--no-header | [--csv | --no-truncate]]
    [--output csv|json|yaml |  | ] [--sort <value>]

FLAGS
  -x, --extended         show extra columns
      --columns=<value>  only show provided columns (comma-separated)
      --csv              output is csv format [alias: --output=csv]
      --filter=<value>   filter property by partial string matching, ex: name=foo
      --no-header        hide table header from output
      --no-truncate      do not truncate output to fit screen
      --output=<option>  output in a more machine friendly format
                         <options: csv|json|yaml>
      --sort=<value>     property to sort by (prepend '-' for descending)

DESCRIPTION
  Display useful information from the user logged into the Internxt CLI.

EXAMPLES
  $ internxt config

See code: src/commands/config.ts

internxt download

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 --id <value> --directory <value> [--overwrite]

FLAGS
  --directory=<value>  (required) The directory to download the file to.
  --id=<value>         (required) The id of the file to download. Use internxt list to view your files ids
  --overwrite          Overwrite the file if it already exists

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

EXAMPLES
  $ internxt download

See code: src/commands/download.ts

internxt list

Lists the content of a folder id.

USAGE
  $ internxt list [-n] [-f <value>] [--columns <value> | -x] [--filter <value>] [--no-header | [--csv |
    --no-truncate]] [--output csv|json|yaml |  | ] [--sort <value>]

FLAGS
  -f, --id=<value>       The folder id to list. Leave empty for the root folder.
  -x, --extended         show extra columns
      --columns=<value>  only show provided columns (comma-separated)
      --csv              output is csv format [alias: --output=csv]
      --filter=<value>   filter property by partial string matching, ex: name=foo
      --no-header        hide table header from output
      --no-truncate      do not truncate output to fit screen
      --output=<option>  output in a more machine friendly format
                         <options: csv|json|yaml>
      --sort=<value>     property to sort by (prepend '-' for descending)

HELPER FLAGS
  -n, --non-interactive  Blocks the cli from being interactive. If passed, the cli will not request data through the
                         console and will throw errors directly

DESCRIPTION
  Lists the content of a folder id.

EXAMPLES
  $ internxt list

See 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 [-n] [-e <value>] [-p <value>] [-w <value>]

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
  -n, --non-interactive  Blocks the cli from being interactive. If passed, the cli will not request data through the
                         console and will throw errors directly

DESCRIPTION
  Logs into an Internxt account. If the account is two-factor protected, then an extra code will be required.

EXAMPLES
  $ internxt login

See code: src/commands/login.ts

internxt logout

Logs out the current internxt user that is logged into the Internxt CLI.

USAGE
  $ internxt logout

DESCRIPTION
  Logs out the current internxt user that is logged into the Internxt CLI.

EXAMPLES
  $ internxt logout

See code: src/commands/logout.ts

internxt logs

Displays the Internxt CLI logs directory path

USAGE
  $ internxt logs

DESCRIPTION
  Displays the Internxt CLI logs directory path

EXAMPLES
  $ internxt logs

See code: src/commands/logs.ts

internxt move

Move a folder/file into a destination folder.

USAGE
  $ internxt move [-n] [-i <value>] [-d <value>]

FLAGS
  -d, --destination=<value>  The destination folder id where the item is going to be moved.
  -i, --id=<value>           The item id to be moved (it can be a file id or a folder id).

HELPER FLAGS
  -n, --non-interactive  Blocks the cli from being interactive. If passed, the cli will not request data through the
                         console and will throw errors directly

DESCRIPTION
  Move a folder/file into a destination folder.

EXAMPLES
  $ internxt move

See code: src/commands/move.ts

internxt trash

Moves a given folder/file to the trash.

USAGE
  $ internxt trash [-n] [-i <value>]

FLAGS
  -i, --id=<value>  The item id to be trashed (it can be a file id or a folder id).

HELPER FLAGS
  -n, --non-interactive  Blocks the cli from being interactive. If passed, the cli will not request data through the
                         console and will throw errors directly

DESCRIPTION
  Moves a given folder/file to the trash.

EXAMPLES
  $ internxt trash

See code: src/commands/trash.ts

internxt upload

Upload a file to Internxt Drive

USAGE
  $ internxt upload --file <value> [--json] [--id <value>]

FLAGS
  --file=<value>  (required) The path to read the file in your system
  --id=<value>    The folder id to upload the file to

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Upload a file to Internxt Drive

EXAMPLES
  $ internxt upload

See code: src/commands/upload.ts

internxt webdav ACTION

Enable or disable the Internxt CLI WebDav server

USAGE
  $ internxt webdav ACTION

DESCRIPTION
  Enable or disable the Internxt CLI WebDav server

EXAMPLES
  $ internxt webdav

See code: src/commands/webdav.ts

internxt whoami

Display the current user logged into the Internxt CLI.

USAGE
  $ internxt whoami

DESCRIPTION
  Display the current user logged into the Internxt CLI.

EXAMPLES
  $ internxt whoami

See code: src/commands/whoami.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @internxt/cli

Weekly Downloads

57

Version

1.0.0

License

MIT

Unpacked Size

214 kB

Total Files

148

Last publish

Collaborators

  • fvsegarra
  • jalbertogonzalez