TntDrive コマンドライン - Amazon S3 ドライブの作成、編集、削除
TntDrive
クラウドをもっと身近に
 

コマンドラインインターフェース

TntDrive 5.1.1 以降には、プログラムの各種設定を管理できるコマンドラインインターフェースが付属しています。

実行ファイル名は tntdrive-cli.exe で、インストールフォルダーにあります (通常は C:\Program Files\TntDrive)

使用方法:

tntdrive-cli.exe /object command [parameters]

使用可能なオブジェクト: account, drive, license, ui, temp, throttling, logging, proxy.

アカウント

アカウント オブジェクトでストレージアカウントを管理します。

使用可能なコマンド: add, update, show, delete, update-credentials

add コマンドでストレージアカウントを追加します。

To add new account please use the following syntax:

/account add name type [properties]

name - any name you would like to assign to your account

type - account type code as shown below:

   0: Amazon S3
   7: Amazon S3 (FIPS 140-3)
   1: Amazon S3 Compatible Storage
   4: Amazon S3 via EC2 IAM Role
  44: Amazon S3 via AssumeRole
   5: Amazon S3 via Environment Variables
   6: Amazon S3 via AWS Config or Credentials File
   3: Amazon S3 GovCloud
  33: Amazon S3 GovCloud (FIPS 140-3)
  34: Amazon S3 GovCloud via EC2 IAM Role
  35: Amazon S3 GovCloud via AssumeRole
  36: Amazon S3 GovCloud via Environment Variables
  37: Amazon S3 GovCloud via AWS Config or Credentials File
   2: Amazon S3 in China
   8: Amazon S3 European Sovereign Cloud

properties - account type-specific properties:

  for Amazon S3, Amazon S3 (FIPS 140-3), Amazon S3 in China,
      Amazon S3 GovCloud, Amazon S3 GovCloud (FIPS 140-3),
      Amazon S3 European Sovereign Cloud:
	access-key-id secret-access-key

  for Amazon S3 Compatible Storage:
	rest-endpoint access-key-id secret-access-key signature-version addressing-model

  for Amazon S3 via EC2 IAM Role, Amazon S3 via Environment Variables,
      Amazon S3 GovCloud via EC2 IAM Role,
      Amazon S3 GovCloud via Environment Variables:
	there are no account type specific properties

  for Amazon S3 via AssumeRole, Amazon S3 GovCloud via AssumeRole:
	role-arn [external-id] source-account

  for Amazon S3 via AWS Config or Credentials File,
      Amazon S3 GovCloud via AWS Config or Credentials File:
	credentials-file credentials-file-profile

The command without [properties] returns account-specific properties description

アカウントの種類ごとのヘルプで、固有のプロパティを確認できます。

次のコマンドは、以下のアカウントに必要なパラメーターの詳細ヘルプを表示します: Amazon S3 アカウント:

	
tntdrive-cli /account add "test account" 0

	
To add new Amazon S3 account please use the following syntax:

/account add name 0 access-key-id secret-access-key

  name - any name you would like to assign to your account

  type - account type code (0 for Amazon S3)

  access-key-id - Your Access Key Id, more details at https://tntdrive.com/keys

  secret-access-key - Your Secret Access Key, more details at https://tntdrive.com/keys
	

tntdrive-cli /account add "test account" 0 AKIASAMPLEACCESSKEY RRll9kp9UgIi7HjKkLkOKmN9<..>

対象: Amazon S3 互換 ストレージアカウント:

tntdrive-cli /account add "test account" 1
To add new Amazon S3 compatible storage account please use the following syntax:

/account add name 1 rest-endpoint access-key-id secret-access-key signature-version addressing-model

  name - any name you would like to assign to your account

  type - account type code (1 for Amazon S3 compatible storage)

  rest-endpoint - Amazon S3 compatible API endpoint, for example: api.server.com or https://172.30.2.111:1784

  access-key-id - Your Access Key Id, more details at https://tntdrive.com/keys

  secret-access-key - Your Secret Access Key, more details at https://tntdrive.com/keys

  signature-version - Allowed values: 2 or 4. Version 4 is recommended when supported by the storage

  addressing-model - Specify 0 for Path style and 1 for Virtual hosted style
tntdrive-cli /account add wasabi 1 s3.wasabisys.com AKIASAMPLEACCESSKEY tVj5PY10zpklCN8YBRDjauuhNKqpY8MTr 4 1

update コマンドでアカウントのプロパティを更新します。

To update account properties please use the following syntax:

/account update name-or-id property-name property-value

  name-or-id     - the name of the account you want to update,
                   you may also use account id

  property-name  - the name of the property you want to update,
                   to find the list of supported properties,
                   please check out the help for the 'add' command

  property-value - the new value for the property

例:

tntdrive-cli /account update local-st rest-endpoint https://172.30.2.111:1784

または

tntdrive-cli /account update test-acc access-key-id AKIAT5ZWU75WMOVK3C5W

show コマンドでアカウントのプロパティを表示します。

To show account details please use the following syntax:

/account show name-or-id

  name-or-id - the name of the account you want to show details for
               (wildcards supported), you may also use account id

例:

tntdrive-cli /account show wasabi-test

出力:

Amazon S3 compatible storage
----------------------------------------
Name: wasabi-test
Id: 24e2e05d
REST Endpoint: s3.wasabisys.com
Region-specific Endpoint:
Signature Version: Signature V4
Addressing Model: Virtual hosted style
AccessKeyId: **********************
SecretAccessKey: **************************************
SSL/TLS: True

delete コマンドで 1 つ以上のアカウントを削除します。

To delete account please use the following syntax:

/account delete name-or-id

  name-or-id - the name of the account you want to delete
               (wildcards supported), you may also use account id

例:

tntdrive-cli /account delete wasabi-test

update-credentials コマンドで AWS 設定ファイルまたは認証情報ファイルからアカウントの認証情報を更新します。使用中の種類が一時認証情報に直接対応していない場合 (例: GovCloud アカウント) に利用できます。

ファイル内のアクセスキーとセッショントークンを、既存のアカウントにコピーできます。

To update account credentials from AWS config or credentials file:

/account update-credentials name-or-id config-file profile-name

  name-or-id   - the name of the account you want to update
                 credentials for, you may also use account id

  config-file  - path to AWS config or credentials file

  profile-name - profile name in AWS config or credentials file

例:

tntdrive-cli /account update-credentials test %USERPROFILE%\.aws\config default

ドライブ

ドライブ オブジェクトでドライブを管理します。

使用可能なコマンド: add, update, list, show, stop, start, reset-cache, delete.

add コマンドでドライブを追加します。

To add the drive please use the following syntax:

/drive add account-name bucket-name/path drive-letter

  account-name - the name of the account to assign to the drive

  bucket-name  - the name of the bucket to map

  path         - optional directory/subdirectory in the bucket

  drive-letter - drive letter to assign to the drive

例:

tntdrive-cli /drive add "test account" mybucket/subdir E

ドライブのその他のプロパティは、次のコマンドで確認できます: update 。

update コマンドでドライブの各種プロパティを更新します。

To update drive properties please use the following syntax:

/drive update drive-letter property-name property-value

  drive-letter   - the letter of the drive you want to update
                   specify * to set property for all drives

  property-name  - the name of the property you want to update

  property-value - the new value for the property

Supported properties are:

  account-name:       the name of the account assigned to the drive
  bucket-and-path:    bucket name and optional path, use the slash symbol (/) as a delimiter
  read-only:          enable read-only mode - true/false
  drive-type:         drive type, supported values are: Removable, Network
  drive-letter:       new drive letter for the drive, drive letter must be available (unused)
  enabled:            drive is enabled(active) - true/false
  network-access:     enable drive availability over the local network - true/false
  win32-attributes:   enable win32 attributes emulation (may work slow!) - true/false
  default-sc:         default storage class for all new files, supported values are:
                      STANDARD, STANDARD_IA, ONEZONE_IA, GLACIER, DEEP_ARCHIVE, INTELLIGENT_TIERING
  sse:                enable server-side encryption - true/false
  ta:                 enable transfer acceleration - true/false
  requester-pays:     enable the requester-pays feature - true/false
  cache-file-info:    enable file information caching - true/false
  cache-dir-listings: enable directory listings caching - true/false
  cache-rr:           enable read requests caching - true/false
  rr-max-file-size:   max file size in megabytes to cache read requests for
  rr-max-cache-size:  max read requests cache size on local disk in megabytes
  read-prefetching:   enable file prefetching for read requests - true/false
  rp-max-file-size:   max file size in megabytes to prefetch
  cache-ttl:          time to live of cached data in seconds

例:

tntdrive-cli /drive update E bucket-and-path my-backups-bucket/documents/2021

list コマンドで全ドライブの概要を表示します。

To list all mapped drives please use the following syntax:

/drive list

例:

tntdrive-cli /drive list

出力:

Letter  Path                  Account          Enabled
-------------------------------------------------------
O:      nas-backups-office    backups-acc      True
H:      nas-backups-home      backups-acc      True
E:      my-bucket-2021        test account     True

show コマンドでドライブのすべてのプロパティを表示します。

To show drive details please use the following syntax:

/drive show drive-letter

  drive-letter - the letter of the drive to show the details for,
                 specify * to show the details for all drives

例:

tntdrive-cli /drive show P

出力:

Drive:
  AccountId: 5be6bc6b
  Path: nas-backups-office
  Id: 5832def1
  ReadOnly: False
  DriveType: Network
  DriveLetter: P:
  DriveLabel: nas-backups-office
  Enabled: True
  AllowNetworkAccess: False
  EnableWin32AttributesEmulation: False
  AmazonS3Options
    DefaultStorageClass: STANDARD
    Server-Side Encryption: False
    TranserAcceleration: False
    RequesterPays: False
  Caching:
    CacheFileInfo: True
    CacheDirListings: True
    CacheReadRequests: True
    ReadRequestsMaxFileSizeMb: 10
    ReadRequestsMaxCacheSizeMb: 1024
    ReadPrefetching: True
    ReadPrefetchingMaxFileSizeMb: 3
    TTLSeconds: 60

stop と start コマンドでドライブを停止・開始します。

To start the drive please use the following syntax:

/drive start drive-letter

  drive-letter - the letter of the drive to start,
                 specify * to start all drives
To stop the drive please use the following syntax:

/drive stop drive-letter

  drive-letter - the letter of the drive to stop,
                 specify * to start all drives

例:

tntdrive-cli /drive stop P
tntdrive-cli /drive start P

reset-cache コマンドで、1 つ以上のドライブのファイル情報、フォルダー一覧、読み取りキャッシュをリセットします。

To reset the cache for the drive please use the following syntax:

/drive reset-cache drive-letter

  drive-letter - the letter of the drive to reset cache for,
                 specify * to reset cache for all drives

例:

tntdrive-cli /drive reset-cache P

次のコマンドを使用すると、 delete 1 つ以上のドライブを削除できます。

To delete the drive please use the following syntax:

/drive delete drive-letter

  drive-letter - the letter of the drive to delete,
                 specify * to delete all drives

例:

tntdrive-cli /drive delete P

ライセンス

ライセンス オブジェクトでライセンスを操作します。

使用可能なコマンド: show, get-hwid, activate, deactivate.

show コマンドで現在のライセンス状態を表示します。

To get current licensing status please use the following syntax:

/license show

例:

tntdrive-cli /license show

出力:

TntDrive 6.3.9 - Registered version

get-hwid コマンドでコンピューターのハードウェア ID を表示します。

To get machine hardware ID please use the following syntax:

/license get-hwid

例:

tntdrive-cli /license get-hwid

出力:

5bc633bcaea9109e1b3b78fa4bf9257c

activate コマンドで TntDrive のライセンスを認証します。

To activate the license please use the following syntax:

/license activate license-key

  license-key - TntDrive license key

例:

tntdrive-cli /license activate YOUR-TNTDRIVE-LICENSE-KEY

出力:

Please wait, connecting activation server..
Your license has been successfully activated. Thank you!

deactivate コマンドで TntDrive のライセンス認証を解除します。

To deactivate the license please use the following syntax:

/license deactivate

例:

tntdrive-cli /license deactivate

出力:

Please wait, connecting activation server..
Your license has been successfully deactivated.

UI

UI オブジェクトで一部の UI 設定を変更します。

使用可能なコマンド: hide-access-keys, hide-advanced-drive-properties.

hide-access-keys コマンドで、アカウント管理画面のアクセスキー ID とシークレットアクセスキーをマスクします。

To disable access keys visibility in UI please use the following syntax:

/ui hide-access-keys true|false

  true|false - true to not show access keys in UI and false otherwise

例:

tntdrive-cli /ui hide-access-keys true

hide-advanced-drive-properties コマンドで次のリンクを非表示にします: ドライブの詳細プロパティ (UI 内)。

To disable advanced drive properties visibility in UI please use the following syntax:

/ui hide-advanced-drive-properties true|false

  true|false - true to disable advanced drive properties and false otherwise

例:

tntdrive-cli /ui hide-advanced-drive-properties true

一時フォルダー

一時フォルダー オブジェクトで一時フォルダーの場所を表示・変更します。

使用可能なコマンド: get, set.

get コマンドで現在の一時フォルダーの場所を表示します。

To get current temp folder location please use the following syntax:

/temp get

例:

tntdrive-cli /temp get

出力:

C:\Temp\TntDrive

set コマンドで一時フォルダーの場所を設定します。

To set temp folder location please use the following syntax:

/temp set path

  path - new temp folder location

例:

tntdrive-cli /temp set D:\TntDrive

帯域制限

帯域制限 オブジェクトで帯域制限の設定を表示・変更します。

使用可能なコマンド: get, set.

get コマンドで現在の帯域制限を表示します。

To get current bandwidth throttling settings please use type:

/throttling get

例:

tntdrive-cli /throttling get

出力:

Disabled

set コマンドで帯域制限を設定します。

To set bandwidth throttling please use the following syntax:

/throttling set max-kbps-per-thread

  max-kbps-per-thread - max KB/s per thread (0 to disable throttling)

例:

tntdrive-cli /throttling set 256

ログ

ログ オブジェクトでログ設定を表示・変更します。

使用可能なコマンド: get, set.

get コマンドで現在のログ設定を表示します。

To get current logging settings please use the following syntax:

/logging get

例:

tntdrive-cli /logging get

出力:

Brief

set コマンドでログ設定を変更します。

To set logging level please use the following syntax:

/logging set logging-level

logging-level - supported levels are: Verbose, Brief, WarningsAndErrors

例:

tntdrive-cli logging set Verbose

プロキシ

プロキシ オブジェクトでプロキシ設定を表示・変更します。

使用可能なコマンド: get, set.

get コマンドで現在のプロキシ設定を表示します。

To get current proxy settings please use the following syntax:

/proxy get

例:

tntdrive-cli /proxy get

出力:

DoNotUseProxy

set コマンドでプロキシ設定を変更します。

To set proxy settings please use the following syntax:

/proxy set proxy-type [host port [username] [password] [domain]]

  proxy-type - supported types are: DoNotUseProxy, AutoDetect, UserDefined

  for UserDefined proxy type the following additional parameters required:

    host     - proxy address
    port     - proxy port

  if your proxy server requires authentication the following additional parameters required:

    username - username to authenticate on proxy server
    password - password to authenticate on proxy server
    domain   - (optional) domain to authenticate on proxy server

例:

tntdrive-cli proxy set UserDefined 192.168.2.22 8080
すべての機能を無料で試用
Powered by Amazon Web Services
関連製品
TntDrive は Netsdk Software FZE が開発しており、Amazon または AWS との提携、推奨、後援関係はありません。Amazon S3 および Amazon S3 Glacier は Amazon.com, Inc. またはその関連会社の商標です。
Copyright © 2008-2026 Netsdk Software FZE. All rights reserved.  利用規約 (英語).  プライバシーポリシー (英語).  返金ポリシー (英語).  CS Browser.  RDP ブルートフォース対策.