Directuspt

screenshot of Directuspt

Directus CLI Tool to help with snapshotting, seeding, and more

Overview:

DirectusPTA CLI is a command-line tool that allows users to operate on Directus, a content management system, in a GitOps style. It helps in snapshotting the Directus schema, permissions, folders, and translations as a set of JSON files. The tool also provides the functionality to apply the snapshot taken with DirectusPTA CLI.

Features:

  • DirectusPTA CLI: A command-line tool for operating on Directus in a GitOps style.
  • Snapshot: Allows users to snapshot Directus schema, permissions, folders, and translations as JSON files.
  • Apply: Provides the functionality to apply the snapshot taken with DirectusPTA CLI.
  • Additional Filters: Users can use additional filters to selectively snapshot roles and folders.
  • Resource Selection: Allows users to specify which resources to include or exclude from the snapshot using CSV lists.
  • Common Options: Directus host, user credentials, and user token can be set via command-line options or environment variables.
  • Security: Environment variables are preferred for setting user credentials and tokens to avoid exposing sensitive information.
  • Future Improvements: The tool plans to add flows and presets to the snapshots, improve logging, and allow loading configuration from a file.

Summary:

DirectusPTA CLI is a powerful command-line tool for operating on Directus in a GitOps style. It provides the functionality to snapshot and apply Directus schema, permissions, folders, and translations as JSON files. With additional filters and resource selection options, users have granular control over what to include or exclude in the snapshot. The tool also prioritizes security by allowing users to set user credentials and tokens via environment variables, avoiding the exposure of sensitive information. With planned future improvements, such as flows and presets in snapshots, improved logging, and configuration loading from a file, DirectusPTA CLI is a valuable tool for managing Directus deployments.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.