Metadata-Version: 2.4
Name: criptenv
Version: 0.1.0
Summary: Zero-Knowledge secret management CLI
Project-URL: Homepage, https://github.com/77mdias/criptenv
Project-URL: Repository, https://github.com/77mdias/criptenv
Project-URL: Issues, https://github.com/77mdias/criptenv/issues
Project-URL: Documentation, https://github.com/77mdias/criptenv#readme
Author-email: Jean Carlos Moreira Dias <jean.77mdiasdev@gmail.com>
License: MIT License
        
        Copyright (c) 2026 CriptEnv
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: cli,encryption,env,environment-variables,secrets,zero-knowledge
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Requires-Dist: aiosqlite>=0.20.0
Requires-Dist: click>=8.1.0
Requires-Dist: cryptography>=42.0.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: python-dotenv>=1.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# CriptEnv CLI

> Zero-Knowledge secret management for developers and teams.

CriptEnv CLI is the command-line interface for the [CriptEnv](https://github.com/77mdias/criptenv) platform — an open-source alternative to Doppler and Infisical. Manage environment variables, API keys, and sensitive credentials with client-side AES-256-GCM encryption. Your secrets never reach our servers in plaintext.

## Features

- **Zero-Knowledge Encryption** — Secrets are encrypted 100% client-side with AES-256-GCM before leaving your machine.
- **Local Vault** — SQLite-backed local cache for offline access to your secrets.
- **Team Sync** — Securely push and pull secrets across environments and team members.
- **Audit Ready** — Every operation is logged and traceable.
- **CI/CD Friendly** — Built-in support for CI tokens and GitHub Actions integration.

## Installation

```bash
pip install criptenv
```

Requires Python **3.10+**.

## Quick Start

```bash
# Initialize the CLI
criptenv init

# Log in to your CriptEnv account
criptenv login

# Set a secret in the current environment
criptenv secrets set DATABASE_URL postgres://localhost/mydb

# List all secrets
criptenv secrets list

# Pull latest secrets from the server
criptenv sync pull

# Push local secrets to the server
criptenv sync push
```

## Commands

| Command | Description |
|---------|-------------|
| `init` | Initialize local vault and configuration |
| `login` | Authenticate with your CriptEnv account |
| `secrets set <key> <value>` | Encrypt and store a secret |
| `secrets get <key>` | Retrieve and decrypt a secret |
| `secrets list` | List all secrets in the current environment |
| `secrets delete <key>` | Remove a secret |
| `sync push` | Upload encrypted secrets to the server |
| `sync pull` | Download encrypted secrets from the server |
| `environments` | Manage project environments |
| `projects` | Manage projects |
| `doctor` | Check CLI health and connectivity |

## Security

Secrets are encrypted using a key derived from your password via PBKDF2-HMAC-SHA256 (100,000 iterations) and HKDF-SHA256. The server only stores opaque encrypted blobs — it has no ability to decrypt your data.

## Development

```bash
cd apps/cli
pip install -e ".[dev]"
python -m pytest tests -q
```

## License

MIT License — see [LICENSE](LICENSE) for details.

---

Made with ❤️ by [Jean Carlos Moreira Dias](https://github.com/77mdias)
