LoginSignup
8
8

More than 3 years have passed since last update.

Mutagenチートシート

Posted at

 SSH経由、Dockerホスト/コンテナ間など様々な環境同士でファイルを同期できるツール「Mutagen」の(主に自分用の)チートシートです。
Mutagenの使い方を学びながら、少しずつ足していきます。

1. インストール/デーモン

コマンド 意味
brew install mutagen-io/mutagen/mutagen Homebrew(macOS)でのインストール
mutagen daemon start デーモンの起動
mutagen daemon stop デーモンの停止
$ mutagen daemon help
Control the lifecycle of the Mutagen daemon

Usage:
  mutagen daemon [flags]
  mutagen daemon [command]

Available Commands:
  start       Start the Mutagen daemon if it's not already running
  stop        Stop the Mutagen daemon if it's running
  register    Register the Mutagen daemon to start automatically on login [Experimental]
  unregister  Unregister automatic Mutagen daemon start-up [Experimental]

Flags:
  -h, --help   Show help information

Use "mutagen daemon [command] --help" for more information about a command.

2. ファイル同期

コマンド 意味
mutagen sync help 同期セッションについてのヘルプの表示
mutagen sync create <同期元> <同期先> 同期セッションの作成
mutagen sync create ~/foo user@host:bar 同期セッションの作成(SSH接続の例)
mutagen sync create --name <セッション名> ... 同期セッションのセッション名の指定
mutagen sync list 同期セッションの一覧表示
mutagen sync monitor <セッション名> 同期セッションのモニタリング(状況確認)
mutagen sync pause <セッション名> 同期セッションの一時停止
mutagen sync resume <セッション名> 同期セッションの再開
mutagen sync terminate <セッション名> 同期セッションの停止と削除
$ mutagen sync help
Create and manage synchronization sessions

Usage:
  mutagen sync [flags]
  mutagen sync [command]

Available Commands:
  create      Create and start a new synchronization session
  list        List existing synchronization sessions and their statuses
  monitor     Show a dynamic status display for a single session
  flush       Force a synchronization cycle
  pause       Pause a synchronization session
  resume      Resume a paused or disconnected synchronization session
  reset       Reset synchronization session history
  terminate   Permanently terminate a synchronization session

Flags:
  -h, --help   Show help information

Use "mutagen sync [command] --help" for more information about a command.

3. その他

コマンド 意味
mutagen help ヘルプの表示
mutagen version バージョン番号の表示
$ mutagen version
0.11.5

$ mutagen help
Mutagen is a remote development tool built on high-performance synchronization

Usage:
  mutagen [flags]
  mutagen [command]

Available Commands:
  sync        Create and manage synchronization sessions
  forward     Create and manage forwarding sessions [Experimental]
  project     Orchestrate sessions for a project [Experimental]
  tunnel      Create and manage tunnels [Experimental]
  login       Log in to mutagen.io
  logout      Log out from mutagen.io
  daemon      Control the lifecycle of the Mutagen daemon
  version     Show version information
  legal       Show legal information
  help        Help about any command

Flags:
  -h, --help   Show help information

Use "mutagen [command] --help" for more information about a command.
8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8