ti fs read-file
リモートファイルまたはバイト範囲を読み取り、標準出力に出力します。このコマンドのエイリアスは ti fs cat です。
構文
ti fs read-file
--path <string>
[--file-system-id <string>]
[--fs-token <string>]
[--help]
[--length <int64>]
[--offset <int64>]
[--version]
オプション
--path <string>: 選択したファイルシステム内のファイルパスです。[required]--file-system-id <string>: ファイルシステムを選択します。TI_FS_FILE_SYSTEM_IDを設定することもできます。--fs-token <string>: ファイルシステムトークンを設定します。省略した場合、このコマンドはTI_FS_TOKEN環境変数を使用します。どちらも指定されていない場合、このコマンドは選択したファイルシステム用にローカルに保存されているトークンを使用します。--help: ヘルプ情報を表示します。--length <int64>: 範囲読み取りのバイト長です。--offset <int64>: 範囲読み取りの 0 ベースのバイトオフセットです。--version: バージョン情報を表示します。
すべてのコマンドで共通のオプションについては、グローバルオプション を参照してください。
例
完全なファイルを読み取る:
# Write the remote file contents directly to standard output. ti fs read-file --file-system-id <file-system-id> --path /reports/report.mdバイト範囲を読み取る:
# Fetch only the requested range from a large remote object. ti fs read-file --file-system-id <file-system-id> --path /archives/large.bin --offset 1024 --length 4096