Skip to content

Conversation

@anex45
Copy link

@anex45 anex45 commented Apr 14, 2025

The Roboflow Python SDK now includes a comprehensive command-line interface (CLI) that allows users to interact with the Roboflow API without writing Python scripts. This implementation mirrors the capabilities of the existing Node.js CLI, providing a consistent experience across different programming environments.

## Key Features Implemented

### Dataset Management

  • upload-dataset : Upload datasets from local folders to Roboflow projects
  • list-datasets : View all datasets in a workspace with detailed information

### Model Management

  • list-models : View all models in a workspace, with optional filtering by project

Implementation Details

The CLI commands are implemented in theroboflow/cli directory, with separate modules for different functionality:

  • commands.py : Contains dataset-related commands (upload-dataset, list-datasets)
  • model_commands.py : Contains model-related commands (list-models)
    Each command follows a consistent pattern:
  1. Command registration with argparse
  2. Parameter definition with appropriate help text
  3. Implementation function that handles the command logic

Documentation

All commands are thoroughly documented inCLI-COMMANDS.md.new with:

  • Command syntax and available options
  • Example usage scenarios
  • Sample output
    This documentation makes it easy for users to understand how to use each command effectively.

Integration

The CLI commands are fully integrated with the existing Roboflow CLI framework, allowing users to access all functionality through a single entry point. The implementation maintains consistency with existing commands like login, download, and import.

This addition significantly enhances the usability of the Roboflow Python SDK, making it more accessible to users who prefer command-line interfaces over programmatic APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant