Skip to main content

CLI for managing and locally testing BRYTER Custom Actions.

Project description

Custom Action Helper

CLI for managing and locally testing BRYTER Custom Actions.

This is a community project and is not officially supported by BRYTER.

Custom Action Helper CLI help screenshot

Getting started

Requirements

Installation (recommended for all OS)

Use uv tool on macOS, Linux, and Windows:

uv tool install custom-action-helper

Verify:

custom-action-helper set
custom-action-helper list

Alternative without permanent install:

uvx custom-action-helper --help

How to use

  1. cd into your Custom Action project directory.
  2. Run a command and pass the application URL as the second positional argument.

Example URL:

https://app.bryter.io/applications/<application-id>/build

Examples:

custom-action-helper list https://app.bryter.io/applications/<application-id>/build
custom-action-helper install https://app.bryter.io/applications/<application-id>/build --implementation-file extract.ts
custom-action-helper update https://app.bryter.io/applications/<application-id>/build --implementation-file extract.ts
custom-action-helper log https://app.bryter.io/applications/<application-id>/build --environment test
custom-action-helper delete https://app.bryter.io/applications/<application-id>/build --action-id <action-id>

If values are missing (for example API token), the tool prompts you. When entering an application URL where a base URL is expected, the tool auto-extracts the application ID.

Commands

  • list: show actions for the selected application
  • install: create action from metadata and upload implementation
  • update: update action metadata and upload implementation
  • log: fetch action event logs
  • delete: permanently delete an action (requires typed confirmation)
  • reset: force prompts on next run for values not set in the current configuration

delete always shows a high-visibility warning and only executes if you type exactly:

delete action

Flags

Flag Description
--base-url API base URL (example: https://app.bryter.io/api/)
--api-token Securely prompt for API token (does not accept token values)
--api-token-file Read API token from a text file
--application-id BRYTER application ID
--environment-id Environment ID for op_env_info
--action-id Explicit action ID
--action Select an action by value. You can pass action id, action key, or action name (example: --action extract_pdf).
--environment Environment name for log resolution
--events-path Explicit events path for log
--metadata-file Metadata JSON file (default for install/update: metadata.json)
--implementation-file Implementation file (.ts/.js)
--connection-name Connection name for op_create_connection
--project-path Override project directory
--repo-url Library repository URL for lib commands
--repo-ref Library repository ref (branch/tag/commit)
--repo-path Local clone path for library repo
--integrations-path Integrations directory inside library repo
-y, --yes Auto-confirm confirmation prompts
--verbose Enable verbose logs

Configuration

The tool stores your settings automatically and prompts for missing values when needed.

Useful commands:

  • custom-action-helper set: show current settings
  • custom-action-helper set <key> <value>: update a setting
  • custom-action-helper set token: securely enter an API token
  • custom-action-helper reset: force prompts again on the next run

Common setup:

custom-action-helper set base_url https://app.bryter.io/api/
custom-action-helper set application_id <application-id>
custom-action-helper set environment_name <environment-name>
custom-action-helper set log_level error

Library functionality (lib)

lib helps you consume a shared repository of custom action templates/integrations.

Before using lib, configure the repository URL once:

custom-action-helper set custom_actions_repo_url https://gitlab.com/ryter/custom/custom-actions.git
  • custom-action-helper lib ls: list available folders in the library
  • custom-action-helper lib refresh: sync/refresh the local library cache
  • custom-action-helper lib install <folder>: use a library folder as project context, then run install flow
  • custom-action-helper lib update <folder>: use a library folder as project context, then run update flow

Local test functionality (test)

test is intended for developers working on implementation code.

It runs your implementation locally using the selected project directory and the project .env file.

node --env-file=.env --import tsx <implementation-file> --local-test

Uninstallation

If installed via uv tool:

uv tool uninstall custom-action-helper

If you used repository scripts instead, use the matching uninstall flag:

./scripts/install.sh --uninstall
./scripts/install.ps1 -Uninstall

Building

poetry build

Contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bryter_custom_action_helper-0.5.0.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bryter_custom_action_helper-0.5.0-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file bryter_custom_action_helper-0.5.0.tar.gz.

File metadata

File hashes

Hashes for bryter_custom_action_helper-0.5.0.tar.gz
Algorithm Hash digest
SHA256 60cedb0f550c29b3a418f3da38221567744901aeb7f9fee7b160da9771cf5aaa
MD5 f03e086c5ec128fa646c5d7ce2837573
BLAKE2b-256 4a7e83adced20f4776231f4f995759c8387cc1a40d249e8a414705cb341ddad3

See more details on using hashes here.

Provenance

The following attestation bundles were made for bryter_custom_action_helper-0.5.0.tar.gz:

Publisher: publish-to-pypi.yml on jonnybyte/bryter-custom-action-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bryter_custom_action_helper-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bryter_custom_action_helper-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6940e333a04894c4c3752c6586aa82d6eb808d2cb5fb09e58d13895f9b8adc0
MD5 210d56960002768bb6291d3b18d67f7b
BLAKE2b-256 2703f89d1bbe86be4bdb0f6034312b8cbb5d58b63cafa49d0e60022e3fe59f4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for bryter_custom_action_helper-0.5.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on jonnybyte/bryter-custom-action-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page