@docupace/pipeline

中文文档
1.1.13发布于 2026/11/12ISCESM + CJS近 30 天下载 5444

A collection of CLI tools for Docupace's CI/CD pipelines and deployment workflows.

原始使用文档
文档目录14 节
  1. Overview
  2. Installation
  3. Command Line Interfaces
  4. dp-next-cli
  5. dp-changeset-cli
  6. dp-auth0-cli
  7. Environment Configuration
  8. Secrets Manager Configuration
  9. Vault Configuration (Default)
  10. AWS Secrets Manager Configuration
  11. AWS Secrets Manager Paths
  12. Secrets Supported by App Type
  13. Examples
  14. License

Pipeline Shared Scripts

A collection of CLI tools for Docupace's CI/CD pipelines and deployment workflows.

Overview

This package provides a set of command-line interfaces (CLIs) to facilitate various DevOps operations in the Docupace ecosystem:

  • dp-next-cli: Deployment and pipeline management for Next applications
  • dp-changeset-cli: Versioning and changeset management
  • dp-auth0-cli: Auth0 tenant configuration and management

Installation

npm install @docupace/pipeline

Or with pnpm:

pnpm add @docupace/pipeline

Command Line Interfaces

dp-next-cli

Manages deployment, Docker image handling, and infrastructure configuration.

dp-next-cli [command] [options]

Commands:

  • pull <imageName>: Pull a Docker image from the registry
  • sonar: Run Sonar analysis
  • validate-seeding-guids: Fail on duplicate or non-string GUIDs, warn on non-32-char ones, in template seeding data (run from the template repo root)
    • --data-dir <dir>: Seeding data directory (default data)
  • addApacheSite: Add site to apache
  • connectClone: Clone connect site
  • haproxySync: Sync haproxy config
  • vaultAddSiteData: Add m2m auth0 data to vault
    • -s, --site-name <siteName>: Site name
    • -p, --site-config-remote-path <path>: Site config remote path
  • publish: Publish a Docker image
  • deploy-from-site: Deploy an application for a specific site
    • -f, --from-env <fromEnv>: Source environment
    • -t, --to-env <toEnv>: Target environment
    • -F, --from-site <fromSite>: Source site
    • -T, --to-site <toSite>: Target site
    • -j, --jira-ticket [jiraTicket]: JIRA ticket (optional)
    • -c, --deploy-core <deployCore>: Deploy Core (default: "false")
    • -C, --deploy-connect <deployConnect>: Deploy Connect (default: "false")
    • -A, --deploy-connect-aws <deployConnectAws>: Deploy Connect UI on AWS via dp-eks-connect-ui-gitops (default: "false")
  • update-site-version <env> <site>: Update specific version components for a site
    • -u, --ui-version <uiVersion>: UI image tag
    • -g, --graph-version <graphVersion>: GraphQL-server image tag
    • -S, --standard-config <standardConfig>: Standard config remote branch
    • -s, --site-config <siteConfig>: Site config remote branch
    • -c, --connect-version <connectVersion>: AWS Connect UI image tag (optional)
    • -j, --jira-ticket [jiraTicket]: JIRA ticket (required for prod)
  • deploy-template: Deploy an application for a specific site
  • deploy-app <application>: Deploy an application for a specific site
    • deploy-app connect -e <env> -s <site>: Deploy AWS Connect UI (triggers deploy-connect-aws / gitops update-site-image)
    • -e, --env <env> / -s, --site <site>: Target env/site (optional; otherwise uses auto-deploy targets)
  • deploy-core <env> <site>: Deploy Core
    • -l, --liquibase <liquibase>: Application name (default: "true")
    • -b, --branch <branch>: Branch (default: "master")
  • deploy-connect <env> <site>: Deploy Connect
    • -l, --liquibase <liquibase>: Application name (default: "true")
    • -b, --branch <branch>: Branch (default: "master")
  • deploy-connect-aws <env> <sites> <version>: Deploy Connect UI on AWS (updates dp-eks-connect-ui-gitops image.tag via Bitbucket pipeline)
    • <sites>: single site or comma-separated list (e.g. oa or oa,athene,template)
    • -b, --branch <branch>: Gitops branch for the pipeline (default: "main")
    • -w, --wait / --no-wait: Wait for pipeline completion (default: wait)
  • deploy-core-pipeline <env> <site>: Deploy Core via pipeline
    • -l, --liquibase <liquibase>: Application name (default: "true")
    • -b, --branch <branch>: Branch (default: "master")
  • copy: Copy a Docker image between registries
    • -a, --application <application>: Application name
    • -f, --from-env <fromEnv>: Source environment
    • -t, --to-env <toEnv>: Target environment
    • -g, --tag <tag>: Image tag
  • run-pipeline: Trigger a pipeline by name
    • -r, --repository <repository>: Repository name
    • -p, --pipeline-name <pipelineName>: Pipeline name
    • -b, --branch <branch>: Branch name
    • -v, --variables <key=value>: Pipeline variable as key=value pair
    • -w, --wait: Wait for the pipeline to complete (default: false)

dp-changeset-cli

Manages versioning and changesets for mono-repos and single-package repos.

dp-changeset-cli [command] [options]

Commands:

  • validate: Validate changesets for the provided PR
  • version: Run Changeset versioning
  • commit-tag: Commit and tag the new version
  • version-commit-tag: Run versioning and commit-and-tag in sequence
  • close-version: Close a version and create a release branch
  • create-changeset: Create a changeset based on the current branch and Jira ticket information

dp-auth0-cli

Manages Auth0 tenant configuration across environments and secrets management (Vault and AWS Secrets Manager).

dp-auth0-cli [command] [options]

Commands:

  • configureFromSite <fromSite> <toSite> <fromEnv> <toEnv> <deployUI> <deployGraphQLServer> <useNewDomain> <useS3> [auth0Tenant]: Configure Auth0 tenants
  • getVaultSecrets <vaultPath>: Get secrets from Vault
  • getAwsSecrets <secretName>: Get secrets from AWS Secrets Manager
  • saveAwsSecret <secretName> <secretData> [-d, --description <desc>]: Save secrets to AWS Secrets Manager
  • listAwsSecretsForSite <site>: List AWS Secrets Manager paths for a site
  • configureAlias <site> <env> <username> <password> <realm>: Configure Core Alias for the given site
  • exportConf <site> <env>: Export Auth0 configuration for the given site
  • getAuth0Metadata <site> <env>: Get Auth0 metadata for the given site

Environment Configuration

The CLI tools look for environment configuration in the following locations:

  • .env.pipeline.local
  • config/.env.pipeline.local

Secrets Manager Configuration

By default, the tools use HashiCorp Vault for secrets management. To use AWS Secrets Manager instead, set the SECRETS_MANAGER_TYPE environment variable:

# Use HashiCorp Vault (default)
export SECRETS_MANAGER_TYPE=vault

# Use AWS Secrets Manager
export SECRETS_MANAGER_TYPE=aws

Vault Configuration (Default)

  • VAULT_ADDR: Vault server URL (e.g., https://vault.example.com)
  • VAULT_TOKEN: Vault authentication token
  • VAULT_SKIP_VERIFY: Skip TLS certificate verification (optional, set to true)

AWS Secrets Manager Configuration

  • AWS_REGION: AWS region (e.g., us-east-1, eu-west-1)
  • AWS_ACCESS_KEY_ID: AWS access key ID (for manual authentication)
  • AWS_SECRET_ACCESS_KEY: AWS secret access key (for manual authentication)

Note: When running in AWS environments (EC2, ECS, EKS, Lambda), credentials are automatically provided via IAM roles, so you don't need to set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

AWS Secrets Manager Paths

For a given site (e.g., myapp), AWS Secrets Manager follows this naming convention:

  • common/config - Common secrets
  • myapp/common/config - Site common secrets (Auth0 client credentials)
  • myapp/graphql-server/config - GraphQL server secrets
  • myapp/ui/config - UI Main app secrets
  • myapp/ui-cc/config - UI CC app secrets
  • myapp/aws/config - AWS S3 configuration secrets

Secrets Supported by App Type

The following secrets are stored for each application:

AppSecretsAWS Path
Auth0 (Common)AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET{site}/common/config
GraphQL-ServerAUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_CC_CLIENT_ID, AUTH0_CC_CLIENT_SECRET{site}/graphql-server/config
UI MainAUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_SECRET{site}/ui/config
UI CCAUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_SECRET{site}/ui-cc/config

Examples

# Deploy from one site to another
dp-next-cli deploy-from-site --from-env dev --to-env dev --from-site financialdev --to-site template --deploy-core true

# Run a pipeline
dp-next-cli run-pipeline -r docupace-next-e2e -b master -p run-tests-qa

# Validate changesets
dp-changeset-cli validate

# Create a new changeset
dp-changeset-cli create-changeset

# Configure Auth0 for a site
dp-auth0-cli configureFromSite sourceSite targetSite dev prod true true true false

# Deploy Connect UI image tag on AWS (single site or comma-separated sites)
dp-next-cli deploy-connect-aws qa 1stglobal 4.75.52
dp-next-cli deploy-connect-aws qa oa,athene,template 4.75.52

# Promote AWS Connect UI version from one site to another via deploy-from-site
dp-next-cli deploy-from-site -f dev -t qa -F template -T template -A true

License

ISC

版本与发布记录

@docupace/pipeline 共发布 504 个版本,首次发布于 2024/12/13;过去 12 个月发布了 96 个版本。

版本发布日期距今
1.1.13latest2026/11/121 天前
1.1.112026/11/094 天前
1.1.02026/11/094 天前
1.1.102026/11/0310 天前
1.1.92026/11/0310 天前
1.1.82026/11/0211 天前

其他发布通道:patch → 1.0.0-alpha.28,ervinUpdate → 1.0.5-alpha.25.ervins.8,beta → 1.0.7-beta.2,auth0-tenant-setup → 1.0.10-alpha.1,ervinPatch → 1.0.1-2.ervins.3,ervinPatch1 → 1.0.1-2.ervins.14。

关于 @docupace/pipeline 的常见问题

@docupace/pipeline 是什么?

A collection of CLI tools for Docupace's CI/CD pipelines and deployment workflows.

如何安装 @docupace/pipeline?

在项目目录运行 npm install @docupace/pipeline,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 dp-next-cli、dp-xray-cli、dp-auth0-cli、dp-merge-cli、dp-micro-cli、dp-tenable-cli、dp-veracode-cli、dp-changeset-cli,可以用 npx dp-next-cli 直接运行。

@docupace/pipeline 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/docupace__pipeline 是否存在。

@docupace/pipeline 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@docupace/pipeline 可以商用吗?

@docupace/pipeline 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@docupace/pipeline 的下载量有多少?

根据 npm 官方下载统计,@docupace/pipeline 在 2026/10/13 – 2026/11/11 这 30 天内被下载 5,444 次,日均约 181 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@docupace/pipeline 还在维护吗?

最新版本 1.1.13 发布于 2026/11/12(1 天前);至今共发布 504 个版本,其中过去 12 个月发布了 96 个;首次发布于 2024/12/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。