Operate On Resources

The CLI supports the ability to work with spec files when working with resources.
The supported formats are yaml and json.
Check each specific resource spec for its documentation

Get

codefresh get

Get a resource from a file, directory or url

Supported resources:.

Create

codefresh create

Create a resource from a file, directory or url

Supported resources:

  • ‘context’
  • ‘pipeline’.

    Delete

    codefresh delete

    Delete a resource from a file, directory or url

    Supported resources:

  • ‘Context’
  • ‘Pipeline’.

    Patch

    codefresh patch

    Patch a resource from a file, directory or url

    Patch operation will apply only passed changes to an existing resource and will throw an error if the resource does not exist.

    Supported resources:

  • ‘Context’.

    Replace

    codefresh replace

    Replace a resource from a file, directory or url

    Supported resources:

  • ‘Context’
  • ‘Pipeline’.