cli-objects

Manage database objects, commits, references, and stores via a GraphQL CLI.

52|7|Updated Dec 28, 2024
One-click install
npx skills add https://github.com/constructive-io/constructive --skill cli-objects
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-objects
Source: https://github.com/constructive-io/constructive/tree/main/skills/cli-objects
Command: npx skills add https://github.com/constructive-io/constructive --skill cli-objects

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a command-line interface to interact with an API for managing objects, simplifying operations like context management, authentication, configuration, and CRUD operations on various data entities.

Core Features & Use Cases

  • Context Management: Easily switch between different API endpoints.
  • Authentication: Securely manage API tokens.
  • CRUD Operations: Perform create, read, update, and delete actions on objects, commits, refs, and stores.
  • Use Case: A developer can use this CLI to quickly create a new object in the API, update its properties, and then list all related records without needing to write custom scripts.

Quick Start

Use the csdk tool to create a new context named 'local' pointing to the endpoint 'http://localhost:5000/graphql'.

Frequently Asked Questions about cli-objects

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

FAQPage Schema
How do I manage GraphQL API objects via the command line?

You can manage GraphQL API objects via the command line using the csdk tool to perform CRUD operations, context management, and authentication for database entities like stores and references.

How do I configure and authenticate API tokens for CRUD operations?

To configure API tokens for CRUD operations, use the csdk tool to securely manage your authentication credentials and set up a named context pointing to your specific GraphQL API endpoint.

Can I switch between different API endpoints during object management?

Yes, you can switch between different API endpoints during object management by using the context management features of the csdk tool to easily create and target local or remote GraphQL servers.

What is the best way to interact with a PostGraphile schema without writing custom scripts?

The best way to interact with a PostGraphile schema without custom scripts is using a command-line interface like csdk, which leverages schema-driven API generation to execute CRUD operations on database objects.

Does the csdk CLI support managing commits and references alongside database objects?

Yes, the csdk CLI supports managing commits and references, allowing you to create, read, update, and delete these related records directly alongside your core database objects through the GraphQL API.