> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# anaconda org update

## Usage

```bash theme={null}
anaconda update <SPEC> <SOURCE> [OPTIONS]
```

Comments

Replace \<SPEC> with a package spec in the format USER/PACKAGE\[/VERSION].\\

Replace \<SOURCE> with the path to a metadata file (JSON) or package file.

## Description

Updates public attributes of a package or the attributes of a package release. The source file can be a valid package file or a `.json` file containing the attributes to update.

## Arguments

Argument

Description

`<SPEC>`

Package spec: `USER/PACKAGE[/VERSION]` (required)

`<SOURCE>`

Path to a metadata or package file that will be used to update the package. It can be a valid package file or `.json` file (required).

## Options

Option

Default

Description

`-t, --package-type <TYPE>`

The package type is auto-detected based on the file

Set the package type: `conda`, `env`, `file`, `ipynb`, `pypi`, `r`, `project`, `installer`

`--release`

`false`

Update release attributes instead of package attributes

`-h`

Show help for this command

## Examples

**Update a package with a conda package file**

```bash theme={null}
anaconda org update myusername/numpy/1.21.0 numpy-1.21.0-py39_0.conda
```

**Update a package with a metadata JSON file**

```bash theme={null}
anaconda org update myusername/numpy/1.21.0 metadata.json
```

**Update release attributes**

```bash theme={null}
anaconda org update myusername/numpy/1.21.0 numpy-1.21.0-py39_0.conda --release
```
