@descix/cli
v1.0.1
Published
DeSciX CLI and MCP Server - Unified command-line interface for DeSciX platform
Readme
DeSciX CLI
The official command-line interface for the DeSciX platform.
Installation
npm install -g @descix/cliQuick Start
Login to DeSciX:
descix loginSetup your workspace:
descix setupThis will guide you through connecting your Google Drive and setting up your local environment.
Development Mode: If you are developing locally or against a test environment, you can use the
--devflag:npx descix setup --devThis defaults to
https://localhost:4000unless configured otherwise.Check your status:
descix status
Workspace Modes
The CLI supports three workspace modes to accommodate different development needs:
1. Single App Mode (single_app)
Best for individual developers working on one app.
- Structure: The root folder is your app folder.
- Drive Path:
{community_id}/{app_id}/
2. Single Community Mode (single_community)
Best for teams managing multiple apps within one community.
- Structure: The root folder is the community folder, containing subfolders for each app.
- Drive Path:
{community_id}/
3. Multi-Community Mode (multi_community)
Best for platform admins or agencies managing multiple communities.
- Structure: The root folder contains subfolders for each community.
- Drive Path:
/(Root of your base folder)
Core Commands
descix login: Authenticate with the platform.descix setup: Initialize or repair your workspace configuration.descix status: View your current environment status and workspace mode.descix init: Create.descix/workspace.jsonfor the current project.descix app create: Show instructions; use--quick -c <community> -a <name>for template-only app creation, or use PWA /descix-admin app create.descix sync: Sync content to the platform (Site, Assets).descix kb: Manage Knowledge Base content (Pull -> Chunk -> Sync).
Knowledge Base Management (Git Mode)
For apps managed via CLI (Git Mode), use the following commands to process your Knowledge Base locally:
- Pull: Fetch source documents from Drive.
descix kb pull - Chunk: Process documents into chunks locally.
descix kb chunk - Sync: Push chunks to the platform (Pinecone).
descix kb sync - Build: Run the full pipeline (Pull -> Chunk -> Sync).
descix kb build
Provisioning
Communities and apps are created in the PWA (Workspace Config / Device Setup / App Manager) or via Admin CLI (descix-admin community create, descix-admin app create) for platform admins. The user CLI does not create communities or full app structures; use descix init to write .descix/workspace.json and PWA or Admin CLI to create entities.
- Create your App in the PWA (Workspace Builder).
- Run
descix setupto hydrate your local folder structure.
Documentation
For full documentation, please refer to the DeSciX SDK Documentation.
