Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions app/cli/cmd/workflow_contract_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <file>' instead",
Hidden: true,
PreRunE: func(_ *cobra.Command, _ []string) error {
// Validate and extract the contract name
var err error
Expand Down
46 changes: 0 additions & 46 deletions app/cli/documentation/cli-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading