From 1b2406b1a114a5372e49497878e3825c2ed052b6 Mon Sep 17 00:00:00 2001 From: Sylwester Piskozub Date: Thu, 19 Mar 2026 12:30:38 +0100 Subject: [PATCH 1/2] deprecate wf contract apply Signed-off-by: Sylwester Piskozub --- app/cli/cmd/workflow_contract_apply.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/cli/cmd/workflow_contract_apply.go b/app/cli/cmd/workflow_contract_apply.go index 2fc60f5bb..d34c22c4d 100644 --- a/app/cli/cmd/workflow_contract_apply.go +++ b/app/cli/cmd/workflow_contract_apply.go @@ -26,12 +26,10 @@ func newWorkflowContractApplyCmd() *cobra.Command { var contractName string cmd := &cobra.Command{ - Use: "apply", - Short: "Apply a contract (create or update)", - Long: `Apply a contract from a file. This command will create the contract if it doesn't exist, -or update it if it already exists.`, - Example: ` # Apply a contract from file - chainloop workflow contract apply --contract my-contract.yaml --name my-contract --project my-project`, + Use: "apply", + Short: "Apply a contract (create or update)", + Deprecated: "use 'chainloop apply -f ' instead", + Hidden: true, PreRunE: func(_ *cobra.Command, _ []string) error { // Validate and extract the contract name var err error From 312ebc80de59ef125f4d39579dbadef2faf646b5 Mon Sep 17 00:00:00 2001 From: Sylwester Piskozub Date: Thu, 19 Mar 2026 12:50:09 +0100 Subject: [PATCH 2/2] gen ref Signed-off-by: Sylwester Piskozub --- app/cli/documentation/cli-reference.mdx | 46 ------------------------- 1 file changed, 46 deletions(-) diff --git a/app/cli/documentation/cli-reference.mdx b/app/cli/documentation/cli-reference.mdx index bab1537db..7e3a993cd 100755 --- a/app/cli/documentation/cli-reference.mdx +++ b/app/cli/documentation/cli-reference.mdx @@ -3365,52 +3365,6 @@ Options inherited from parent commands -y, --yes Skip confirmation ``` -#### chainloop workflow contract apply - -Apply a contract (create or update) - -Synopsis - -Apply a contract from a file. This command will create the contract if it doesn't exist, -or update it if it already exists. - -``` -chainloop workflow contract apply [flags] -``` - -Examples - -``` -Apply a contract from file -chainloop workflow contract apply --contract my-contract.yaml --name my-contract --project my-project -``` - -Options - -``` --f, --contract string path or URL to the contract schema ---description string description of the contract --h, --help help for apply ---name string contract name ---project string project name used to scope the contract, if not set the contract will be created in the organization -``` - -Options inherited from parent commands - -``` ---artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "api.cas.chainloop.dev:443") ---artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) --c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) ---control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "api.cp.chainloop.dev:443") ---control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) ---debug Enable debug/verbose logging mode --i, --insecure Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --n, --org string organization name --o, --output string Output format, valid options are json and table (default "table") --t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN --y, --yes Skip confirmation -``` - #### chainloop workflow contract create Create a new contract