primus.dashboard.cli module
Primus Dashboard CLI - Command line interface for the Primus Dashboard API.
This CLI mirrors the GraphQL API schema structure, providing commands and options that map directly to the API’s models and their attributes. The command hierarchy is organized by model (evaluation, account, etc.), with subcommands for operations (create, update, etc.).
- Example command structure:
primus-dashboard evaluation create # Creates an Evaluation record primus-dashboard evaluation update # Updates an Evaluation record primus-dashboard account list # Lists Account records
Each command’s options correspond directly to the GraphQL model’s fields, making it easy to set any attribute that exists in the schema.
- primus.dashboard.cli.create_client() PrimusDashboardClient
Create a client and log its configuration
- primus.dashboard.cli.generate_key(name: str) str
Generate a URL-safe key from a name.
- primus.dashboard.cli.simulate_evaluation_progress(evaluation_id: str, client: PrimusDashboardClient)
Simulate evaluation progress by updating metrics over time.