Configuration¶
exsh stores its configuration at ~/.config/exsh/config.toml. You do not need to edit this file manually — the server and collection subcommands manage it for you.
Servers¶
Add a server¶
exsh will prompt for the password and store it in the config.
By default, the nickname is derived from the hostname (e.g. localhost). Override with --nick:
List servers¶
Rename a server¶
Rename a server's nick. All collections registered against it are updated automatically — no collections are lost and no re-registration is needed.
Example:
exsh server rename localhost prod
# Server 'localhost' renamed to 'prod'.
# (any collections pointing to 'localhost' now point to 'prod')
Remove a server¶
Removing a server also removes all collections registered against it.
Collections¶
A collection in exsh is a shortcut: a nickname that maps to a /db/<path> on a specific server. You never need to type the full path or server URL again.
Register an existing collection¶
If you have a single server registered, @server is optional.
This registers /db/mydata on the localhost server under the nick mydata. Use --nick to choose a different nickname:
Create and register a new collection¶
This creates /db/<name> on the server and registers it in one step. If the collection already exists, it prints a message and exits without modifying the config.
List collections¶
Remove a collection¶
This removes the collection from the local config only — it does not delete the data on the server.
Config file format¶
The generated ~/.config/exsh/config.toml looks like this: