Skip to main content
All CollectionsMerthin CEDGuides
CED CLI: A Detailed Command Guide
CED CLI: A Detailed Command Guide
Updated over 8 months ago

Installation

Before diving into the CLI, you need to install it. The installation process is straightforward and can be completed by following the guidelines on Merthin’s official help center. Detailed steps include downloading the installer appropriate for your operating system and running it. For complete instructions, refer to Installing the CED CLI.

Initialization and Session Management

  • Initialization: Initialize your directory as a CED project with ced init [projectId] [defaultEnvironment] [subsystemId].

  • Login and Logout: Authenticate with ced login and logout with ced logout.

  • Session and Context Management: View current session with ced session and update project context using ced context:update <projectId> <defaultEnvironment> <subsystemId>.

Version and Deployment Management

  • Version Handling: Create a new version with ced version:create, set metadata using ced version:set-metadata [options] <version> <metadata>, and manage version validations with ced version:set-validations [options] <version> <jsonFile>.

  • Version Promotion and Rollback: Promote a version with ced version:promote <sourceVersion> <destSubsystem>.

Project and Environment Operations

  • Project Management: List all projects with ced project:list, manage project webhooks via ced project:set-webhook <projectId>, and handle Slack integrations with ced project:set-slack-webhook-url <projectId> <url>.

  • Environment Operations: List environments with ced env:list [options], clone environments with ced env:clone [options] <destination>, and delete environments using ced env:delete [options] <environment>.

Subsystem Specific Operations

  • Subsystem Management: List subsystems with ced subsystem:list [options], and sync subsystems across environments using ced subsystem:sync [options] <destinationEnvironment> <subsystemId>.

  • Subsystem Webhooks: Manage webhooks for a specific subsystem with ced subsystem:set-webhook <projectId> <environment> <subsystemId>.

Configuration and Deployment

  • Configuration and Templates: Generate system configurations with ced config:generate [options] and deploy templates using ced template:deploy <template>.

  • Cross-environment Checks: Ensure environment consistency with ced cross-environment-check [options].

This CLI provides a comprehensive suite of tools for managing deployments, configuring systems, and integrating services, making it an indispensable resource for system administrators and developers. For more detailed guides and tutorials, consider visiting the Merthin Help Center.

Did this answer your question?