# pw marketplace version publish

> Source: https://parallelworks.com/docs/cli/pw/marketplace/version/publish

## pw marketplace version publish

Publish a new version of a marketplace item

```
pw marketplace version publish <slug> [flags]
```

### Examples

```
  # Add a local workflow version from a YAML file
  pw marketplace version publish --version v1.1.0 --yaml ./workflow.yaml my-workflow
  
  # Replace an existing version's variables
  pw marketplace version publish --version v1.1.0 --replace --yaml ./workflow.yaml my-workflow
  
  # Add a storage/compute version from a JSON file of version fields
  pw marketplace version publish --version v2.0.0 --json ./bucket.json my-bucket
```

### Options

```
      --branch string             Git branch for a remote workflow
  -h, --help                      help for publish
      --json string               Path to a JSON file with the subtype's version fields, or - for stdin
  -o, --output string             Output format (json)
      --readme string             Path to the README within the repo
      --replace                   Replace an existing version's variables instead of adding a new version
      --repo string               Git repository URL for a remote workflow
      --skip-checkout             Skip the git checkout step
      --sparse-checkout strings   Sparse-checkout paths within the repo (repeatable)
      --thumbnail string          Path to the thumbnail image within the repo
      --version string            Version label to add (must start with v)
      --workflow-yaml string      Path to the workflow YAML within the repo
      --yaml string               Path to a local workflow YAML file
```

### Options inherited from parent commands

```
      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
  -v, --verbose                Enable verbose logging
```

### SEE ALSO

* [pw marketplace version](/docs/cli/pw/marketplace/version)	 - Manage marketplace item versions
