configsManager

ConfigsManager Docs


Sync Feature

The ConfigsManager Sync feature allows you to quickly save and restore all your configuration files in the cloud.

Key Features


How tokens are stored

ConfigsManager keeps your cloud OAuth tokens in a single encrypted file at ~/.config/configsManager/tokens.dat (permissions 0600).

You set a passphrase the first time you run cm sync auth. Every later command that needs the tokens will ask for that passphrase (or use a session key — see Unlock a terminal session below).


Fast Start

Log into Dropbox:

cm sync auth --dropbox

The first time you run this you will be asked to create a passphrase (entered twice). This passphrase protects the encrypted token file — remember it; there is no recovery.

You will then receive a link from the tool. Follow the OAuth2 workflow by opening the link and entering the code provided.


Push

Push all your configuration files and metadata to the cloud:

cm sync push

Stores not only the files but also their paths and metadata at the moment of the push.


Pull

Pull configs from the cloud with different options:

1. Pull to the current folder:

cm sync pull [config_key_in_cloud]

2. Pull to a specific folder:

cm sync pull [config_key_in_cloud] [path/]

The tool creates folders automatically if they do not exist.

3. Pull to the original path (--sp flag):

cm sync pull [config_key_in_cloud] --sp

--sp stands for Determined Path – the original path where the config was located when pushed. Example: Fish shell config is stored in ~/.config/fish/config.fish. When pulling with --sp, the tool restores it to the correct location automatically.

4. Pull all configs to their determined paths (killer feature!):

cm sync pull --all --sp

Automatically restores all synced configs to the proper folders.


Unlock a terminal session

Argon2id is slow on purpose — it adds about a second to every command that touches the token file, and you have to retype the passphrase each time. For a series of commands in one terminal there is a shortcut:

eval "$(cm sync unlock)"

To clear it without closing the terminal:

eval "$(cm sync lock)"

That just runs unset CM_SYNC_KEY — the next cm sync … will ask for the passphrase again.

Security notes


Logout

The logout command removes saved authentication tokens from your system.

Usage: Logout from all cloud services

cm sync logout

Logout only from Dropbox

cm sync logout --dropbox

The command safely deletes access and refresh tokens stored by ConfigsManager.