prime-cli


Nameprime-cli JSON
Version 0.3.1 PyPI version JSON
download
home_pageNone
SummaryPrime Intellect CLI
upload_time2025-08-01 20:35:50
maintainerNone
docs_urlNone
authorNone
requires_python<3.13,>=3.11
licenseNone
keywords cli cloud compute gpu
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Prime Intellect CLI

<div align="center">

[![PyPI version](https://img.shields.io/pypi/v/prime-cli?cacheSeconds=60)](https://pypi.org/project/prime-cli/)
[![Python versions](https://img.shields.io/pypi/pyversions/prime-cli?cacheSeconds=60)](https://pypi.org/project/prime-cli/)
[![Downloads](https://img.shields.io/pypi/dm/prime-cli)](https://pypi.org/project/prime-cli/)

Command line interface for managing Prime Intellect resources and environments.
</div>

## 🚀 Quick Start

```bash
# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install prime-cli with uv
uv tool install prime-cli

# Authenticate 
prime login 

# List available GPU resources
prime availability list
```

## 🔧 Features

- **GPU Resource Management**: Query and filter available GPU resources
- **Pod Management**: Create, monitor, and terminate compute pods
- **SSH Access**: Direct SSH access to running pods
- **Team Support**: Manage resources across team environments

## 📦 Installation

### Recommended: Using uv
```bash
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install prime-cli
uv tool install prime-cli
```

### Alternative: Using pip
```bash
# If you prefer traditional pip
pip install prime-cli
```

### For Development
```bash
# Clone the repository
git clone https://github.com/PrimeIntellect-ai/prime-cli
cd prime-cli

# Create virtual environment with uv
uv venv

# Install in development mode with all dependencies
uv pip install -e ".[dev]"

# Set up pre-commit hooks
pre-commit install
```

## 🛠️ Usage

### Configuration
```bash
# Set up API key
prime config set-api-key

# Configure SSH key for pod access
prime config set-ssh-key-path

# View current configuration
prime config view
```

### GPU Resources
```bash
# List all available GPUs
prime availability list

# Filter by GPU type
prime availability list --gpu-type H100_80GB

# Show available GPU types
prime availability gpu-types
```

### Pod Management
```bash
# List your pods
prime pods list

# Create a pod
prime pods create
prime pods create --id <ID>     # With specific GPU config
prime pods create --name my-pod # With custom name

# Monitor and manage pods
prime pods status <pod-id>
prime pods terminate <pod-id>
prime pods ssh <pod-id>
```

### Team Management
```bash
# Set team context
prime config set-team-id
```

### Working Without uv

While we recommend using uv for the best experience, all commands work with standard pip:

```bash
# Install without uv
pip install prime-cli

# Development setup without uv
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
```

Note: Without uv, operations will be slower and you'll need to manage virtual environments manually.

## 💻 Development

### Prerequisites
- Python 3.11+
- uv (recommended): `curl -LsSf https://astral.sh/uv/install.sh | sh`

### Setup
```bash
# Clone and setup with uv
git clone https://github.com/PrimeIntellect-ai/prime-cli
cd prime-cli
uv venv
uv pip install -e ".[dev]"

# Run code quality checks
uv run ruff format src/prime_cli
uv run ruff check src/prime_cli
uv run mypy src/prime_cli
uv run pytest
```

### Code Quality
```bash
# Format code
uv run ruff format src/prime_cli

# Run linter
uv run ruff check src/prime_cli

# Run tests
uv run pytest

# Or if you have the venv activated:
ruff format src/prime_cli
ruff check src/prime_cli
pytest
```

### Release Process
We use semantic versioning. Releases are automatically created when changes are merged to main.

## 🤝 Contributing

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Set up development environment with uv:
   ```bash
   uv venv
   uv pip install -e ".[dev]"
   pre-commit install
   ```
4. Run code quality checks:
   ```bash
   uv run ruff format .
   uv run ruff check .
   uv run pytest
   ```
5. Commit your changes (`git commit -m 'Add amazing feature'`)
6. Push to the branch (`git push origin feature/amazing-feature`)
7. Open a Pull Request

## 📝 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## 🔗 Links

- [Documentation](https://docs.primeintellect.ai)
- [PyPI Package](https://pypi.org/project/prime-cli/)
- [Issue Tracker](https://github.com/PrimeIntellect-ai/prime-cli/issues)
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "prime-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.11",
    "maintainer_email": null,
    "keywords": "cli, cloud, compute, gpu",
    "author": null,
    "author_email": "Prime Intellect <contact@primeintellect.ai>",
    "download_url": "https://files.pythonhosted.org/packages/da/c3/d489fd73ff666ec5969c1f020e737a3fb76570a8331ad0747474ba16e6df/prime_cli-0.3.1.tar.gz",
    "platform": null,
    "description": "# Prime Intellect CLI\n\n<div align=\"center\">\n\n[![PyPI version](https://img.shields.io/pypi/v/prime-cli?cacheSeconds=60)](https://pypi.org/project/prime-cli/)\n[![Python versions](https://img.shields.io/pypi/pyversions/prime-cli?cacheSeconds=60)](https://pypi.org/project/prime-cli/)\n[![Downloads](https://img.shields.io/pypi/dm/prime-cli)](https://pypi.org/project/prime-cli/)\n\nCommand line interface for managing Prime Intellect resources and environments.\n</div>\n\n## \ud83d\ude80 Quick Start\n\n```bash\n# Install uv (if not already installed)\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n\n# Install prime-cli with uv\nuv tool install prime-cli\n\n# Authenticate \nprime login \n\n# List available GPU resources\nprime availability list\n```\n\n## \ud83d\udd27 Features\n\n- **GPU Resource Management**: Query and filter available GPU resources\n- **Pod Management**: Create, monitor, and terminate compute pods\n- **SSH Access**: Direct SSH access to running pods\n- **Team Support**: Manage resources across team environments\n\n## \ud83d\udce6 Installation\n\n### Recommended: Using uv\n```bash\n# Install uv if you haven't already\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n\n# Install prime-cli\nuv tool install prime-cli\n```\n\n### Alternative: Using pip\n```bash\n# If you prefer traditional pip\npip install prime-cli\n```\n\n### For Development\n```bash\n# Clone the repository\ngit clone https://github.com/PrimeIntellect-ai/prime-cli\ncd prime-cli\n\n# Create virtual environment with uv\nuv venv\n\n# Install in development mode with all dependencies\nuv pip install -e \".[dev]\"\n\n# Set up pre-commit hooks\npre-commit install\n```\n\n## \ud83d\udee0\ufe0f Usage\n\n### Configuration\n```bash\n# Set up API key\nprime config set-api-key\n\n# Configure SSH key for pod access\nprime config set-ssh-key-path\n\n# View current configuration\nprime config view\n```\n\n### GPU Resources\n```bash\n# List all available GPUs\nprime availability list\n\n# Filter by GPU type\nprime availability list --gpu-type H100_80GB\n\n# Show available GPU types\nprime availability gpu-types\n```\n\n### Pod Management\n```bash\n# List your pods\nprime pods list\n\n# Create a pod\nprime pods create\nprime pods create --id <ID>     # With specific GPU config\nprime pods create --name my-pod # With custom name\n\n# Monitor and manage pods\nprime pods status <pod-id>\nprime pods terminate <pod-id>\nprime pods ssh <pod-id>\n```\n\n### Team Management\n```bash\n# Set team context\nprime config set-team-id\n```\n\n### Working Without uv\n\nWhile we recommend using uv for the best experience, all commands work with standard pip:\n\n```bash\n# Install without uv\npip install prime-cli\n\n# Development setup without uv\npython -m venv .venv\nsource .venv/bin/activate\npip install -e \".[dev]\"\n```\n\nNote: Without uv, operations will be slower and you'll need to manage virtual environments manually.\n\n## \ud83d\udcbb Development\n\n### Prerequisites\n- Python 3.11+\n- uv (recommended): `curl -LsSf https://astral.sh/uv/install.sh | sh`\n\n### Setup\n```bash\n# Clone and setup with uv\ngit clone https://github.com/PrimeIntellect-ai/prime-cli\ncd prime-cli\nuv venv\nuv pip install -e \".[dev]\"\n\n# Run code quality checks\nuv run ruff format src/prime_cli\nuv run ruff check src/prime_cli\nuv run mypy src/prime_cli\nuv run pytest\n```\n\n### Code Quality\n```bash\n# Format code\nuv run ruff format src/prime_cli\n\n# Run linter\nuv run ruff check src/prime_cli\n\n# Run tests\nuv run pytest\n\n# Or if you have the venv activated:\nruff format src/prime_cli\nruff check src/prime_cli\npytest\n```\n\n### Release Process\nWe use semantic versioning. Releases are automatically created when changes are merged to main.\n\n## \ud83e\udd1d Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Set up development environment with uv:\n   ```bash\n   uv venv\n   uv pip install -e \".[dev]\"\n   pre-commit install\n   ```\n4. Run code quality checks:\n   ```bash\n   uv run ruff format .\n   uv run ruff check .\n   uv run pytest\n   ```\n5. Commit your changes (`git commit -m 'Add amazing feature'`)\n6. Push to the branch (`git push origin feature/amazing-feature`)\n7. Open a Pull Request\n\n## \ud83d\udcdd License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## \ud83d\udd17 Links\n\n- [Documentation](https://docs.primeintellect.ai)\n- [PyPI Package](https://pypi.org/project/prime-cli/)\n- [Issue Tracker](https://github.com/PrimeIntellect-ai/prime-cli/issues)",
    "bugtrack_url": null,
    "license": null,
    "summary": "Prime Intellect CLI",
    "version": "0.3.1",
    "project_urls": {
        "Changelog": "https://github.com/PrimeIntellect-ai/prime-cli/blob/main/CHANGELOG.md",
        "Documentation": "https://github.com/PrimeIntellect-ai/prime-cli#readme",
        "Homepage": "https://github.com/PrimeIntellect-ai/prime-cli",
        "Repository": "https://github.com/PrimeIntellect-ai/prime-cli.git"
    },
    "split_keywords": [
        "cli",
        " cloud",
        " compute",
        " gpu"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "61580e17503147d05be20f1fc3b996a2c7e2a6b161e2bed0bdb927bcce529be5",
                "md5": "ca98404f54b102147761ea7b3b3c7a30",
                "sha256": "9dcc63d55de09178622b8950ca6f18848b0f14b91cfafb956c6a45e83bcf78b2"
            },
            "downloads": -1,
            "filename": "prime_cli-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ca98404f54b102147761ea7b3b3c7a30",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.11",
            "size": 31500,
            "upload_time": "2025-08-01T20:35:49",
            "upload_time_iso_8601": "2025-08-01T20:35:49.504032Z",
            "url": "https://files.pythonhosted.org/packages/61/58/0e17503147d05be20f1fc3b996a2c7e2a6b161e2bed0bdb927bcce529be5/prime_cli-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "dac3d489fd73ff666ec5969c1f020e737a3fb76570a8331ad0747474ba16e6df",
                "md5": "05749ceb2b08fa4aa6aa211d362822fc",
                "sha256": "d96a6fb1e3f02cab51024f3712e73ed98403ff4a18e1715bc2e4dccb544ffa39"
            },
            "downloads": -1,
            "filename": "prime_cli-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "05749ceb2b08fa4aa6aa211d362822fc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.11",
            "size": 92109,
            "upload_time": "2025-08-01T20:35:50",
            "upload_time_iso_8601": "2025-08-01T20:35:50.630861Z",
            "url": "https://files.pythonhosted.org/packages/da/c3/d489fd73ff666ec5969c1f020e737a3fb76570a8331ad0747474ba16e6df/prime_cli-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-01 20:35:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PrimeIntellect-ai",
    "github_project": "prime-cli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "prime-cli"
}
        
Elapsed time: 0.98763s