# dxlabs

A Python CLI tool by DX Labs to manage project assets. Currently supporting `.env` file management on AWS S3.

## Installation

```bash
pip install dxlabs
```

## Usage

### Initialize configuration

```bash
dxlabs init --bucket my-env-bucket --project my-project-name --profile my-aws-profile
```

### Push local .env to S3

```bash
dxlabs env push --env development
# or scan and push all discovered .env files
dxlabs env push
```

### Pull from S3 to local .env

```bash
dxlabs env pull --env staging
# or pull all files stored for the project
dxlabs env pull
```

### List environment files on S3

```bash
dxlabs env list
```

### Delete .env from S3

```bash
# Delete a specific environment
dxlabs env delete --env staging
# Delete a specific file path
dxlabs env delete --file .env.prod
# Delete ALL environment files for the project
dxlabs env delete --all
```

## Features

- **Multi-Environment Support**: Specify environments like `dev`, `staging`, `prod`.
- **S3 Backend**: Secure storage in your own AWS S3 bucket with full S3 URI visibility.
- **Batch Operations**: Push or pull all environment files in one command.
- **CI/CD Integration**: Supports AWS environment variables for credentials.
