CPTD CLI

June 17, 2025

CPTD CLI is not just a command-line tool. It is an extensible management platform designed to:

Architectural Principles

1. CLI as an Extensible Platform
Each command is a regular Python file with a defined interface. You can create your own command in under 5 minutes.

Commands are simple Python modules with minimal structure. Each command includes a manifest file containing information such as name, description, author, version, and dependencies. Developers can use the cptd newcommand template to get started quickly.

Commands can be tested and debugged interactively without restarting the system:

cptd command --add yourcommand.zip     # add command (ZIP only)  
cptd command --del yourcommand         # remove command

To run a command:

cptd yourcommand

To run a project:

cptd yourcommand

2. Security and Validation
All commands in the shared repository undergo strict security checks.
During installation, the system automatically scans for prohibited code (e.g., pip install within the command).
Upon submission to the public repository, each command is verified for security, structure, and manifest integrity.
Community-submitted commands are moderated before publication.

3. CLI as a Backend Engine for UI
The CLI serves as the core engine for graphical interfaces, which use it to execute logic.
CPTD CLI acts as the backend for all current and future UIs — all logic is processed through the CLI.

4. Centralized and Decentralized Distribution
Commands can be loaded and used from the shared repository.
A standard format is supported for importing, exporting, and sharing commands.

5. Autonomy and Reliability
Works fully offline — no cloud required.
No telemetry, hidden data collection, or external connections.
Supports Windows, Linux, and macOS.

Why This Matters

Open Source and Repository

CPTD CLI is a free and open-source project.
The complete source code is available in the public repository:
https://github.com/asbjornrasen/cptd-dsl

This ensures full transparency, builds trust and security, and gives everyone the opportunity to inspect, improve, or reuse the system.
Thanks to its openness, CPTD guarantees independence and verifiability in the long term.

← Back to archive