cli-sdk-guide

Implement Backend.AI client SDK and CLI for automated API interactions.

662|179|Updated Oct 6, 2016
One-click install
npx skills add https://github.com/lablup/backend.ai --skill cli-sdk-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-sdk-guide
Source: https://github.com/lablup/backend.ai/tree/main/.claude/skills/cli-sdk-guide
Command: npx skills add https://github.com/lablup/backend.ai --skill cli-sdk-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive blueprint for implementing Backend.AI client SDK and CLI, enabling developers to build, automate, and orchestrate interactions with Backend.AI services.

Core Features & Use Cases

  • SDK development: Python library for Backend.AI REST APIs with asynchronous-first design and a synchronous CLI wrapper.
  • CLI tooling: Command-line interface that drives automation, testing, and deployment workflows.
  • Architecture & patterns: Session management, API function patterns, Pydantic DTOs, and output handling described end-to-end.
  • Use Case: A developer creates a new integration that uses the SDK to manage sessions and REST calls, then uses the CLI for automation in CI pipelines.

Quick Start

Install the Backend.AI SDK and CLI scaffolding per the guide, initialize a session, and run a sample API operation from both the CLI and a Python script.

Frequently Asked Questions about cli-sdk-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Python SDK for Backend.AI REST APIs?

Backend.AI SDK development uses an asynchronous-first Python library design for REST APIs with a synchronous CLI wrapper, utilizing Pydantic DTOs and session management patterns for automated interactions.

How do I manage sessions when automating Backend.AI CLI workflows?

Session management for Backend.AI CLI workflows uses established architecture patterns to drive automation, testing, and deployment pipelines, maintaining consistent API states across CI environments.

Can I use Pydantic DTOs for Backend.AI client API data handling?

Yes, Pydantic DTOs are applied in the Backend.AI client SDK to ensure structured validation and serialization for API function patterns and output handling during automated integrations.

What is the best way to integrate Click CLI commands with Backend.AI APIs?

Integrating Click CLI commands with Backend.AI APIs involves driving command-line workflows through a synchronous wrapper over the asynchronous SDK, referencing API guides for endpoint integration.

Does the Backend.AI SDK support CI pipeline automation scripts?

Yes, the Backend.AI SDK supports CI pipeline automation by providing CLI tooling and Python scripts that manage sessions and REST calls, orchestrating deployment workflows effectively.

Why use an asynchronous-first design for Backend.AI client SDK development?

An asynchronous-first design is used for Backend.AI client SDK development to handle concurrent REST API interactions efficiently, while a synchronous CLI wrapper enables simpler command-line execution.