| Crates.io | tc-secrets |
| lib.rs | tc-secrets |
| version | 0.2.2 |
| created_at | 2025-05-14 12:54:50.745364+00 |
| updated_at | 2025-07-21 12:31:27.560316+00 |
| description | CLI tool to synchronize .env secrets with AWS Secrets Manager with encryption |
| homepage | https://github.com/teamclouday/secrets-cli |
| repository | https://github.com/teamclouday/secrets-cli |
| max_upload_size | |
| id | 1673330 |
| size | 101,250 |
A CLI tool for synchronizing .env files with AWS Secrets Manager
.env filecargo install tc-secrets
tc-secrets auth
sync command to download the secret to a local file:
tc-secrets sync -f .env
You will be prompted to select the secret location.env filetc-secrets update -f .env
tc-secrets sync -f .env
The remote secret is defined by a secret_id and a field_id. The secret_id is the identifier for the secret in AWS Secrets Manager, and the field_id is the identifier for the specific field within that secret.
With this structure, you can save multiple secret files in a single secret in AWS Secrets Manager, allowing for better organization and management of your secrets.
>>> tc-secrets -h
A CLI tool for synchronizing .env secret files with AWS Secrets Manager
Usage: tc-secrets <COMMAND>
Commands:
auth Authenticate with AWS Secrets Manager
diff Display differences between local and remote secret files
bump Increment the version of the local secret file
reset Reset the local secret file by the remote secret
sync Synchronize local secret file with the remote secret
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
>>> tc-secrets auth -h
Authenticate with AWS Secrets Manager
Usage: tc-secrets auth
Options:
-h, --help Print help
>>> tc-secrets diff -h
Display differences between local and remote secret files
Usage: tc-secrets diff [OPTIONS] --filepath <FILEPATH>
Options:
-f, --filepath <FILEPATH> Path to the local secret file
-p, --password <PASSWORD> Optional password for decrypting the secret file [default: secret]
-h, --help Print help
>>> tc-secrets bump -h
Increment the version of the local secret file
Usage: tc-secrets bump --filepath <FILEPATH>
Options:
-f, --filepath <FILEPATH> Path to the local secret file
-h, --help Print help
>>> tc-secrets reset -h
Reset the local secret file by the remote secret
Usage: tc-secrets reset [OPTIONS] --filepath <FILEPATH>
Options:
-f, --filepath <FILEPATH> Path to the local secret file
-p, --password <PASSWORD> Optional password for decrypting the secret file [default: secret]
-h, --help Print help
>>> tc-secrets sync -h
Synchronize local secret file with the remote secret
Usage: tc-secrets sync [OPTIONS] --filepath <FILEPATH>
Options:
-f, --filepath <FILEPATH> Path to the local secret file
-p, --password <PASSWORD> Optional password for decrypting the secret file [default: secret]
-h, --help Print help