Metadata-Version: 2.3
Name: rsconnect
Version: 1.33.0
Summary: The Posit Connect command-line interface.
Author: Posit, PBC
Author-email: Posit, PBC <rsconnect@posit.co>
License: # MIT License
         
         Copyright (c) 2025 Posit Software, PBC
         
         Permission is hereby granted, free of charge, to any person obtaining a copy
         of this software and associated documentation files (the "Software"), to deal
         in the Software without restriction, including without limitation the rights
         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the Software is
         furnished to do so, subject to the following conditions:
         
         The above copyright notice and this permission notice shall be included in all
         copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         SOFTWARE.
Requires-Dist: typing-extensions>=4.8.0
Requires-Dist: pip>=20.3
Requires-Dist: uv>=0.9.0
Requires-Dist: semver>=2.0.0,<4.0.0
Requires-Dist: pyjwt>=2.4.0 ; python_full_version < '3.9'
Requires-Dist: pyjwt>=2.15.0 ; python_full_version >= '3.9'
Requires-Dist: click>=8.0.0
Requires-Dist: packaging>=20.0
Requires-Dist: toml>=0.10 ; python_full_version < '3.11'
Requires-Dist: keyring>=23.0.0 ; extra == 'keyring'
Requires-Dist: snowflake-cli>=2.8.2 ; python_full_version < '3.10' and extra == 'snowflake'
Requires-Dist: snowflake-cli>=3.23.0 ; python_full_version >= '3.10' and extra == 'snowflake'
Requires-Python: >=3.8
Project-URL: Repository, http://github.com/posit-dev/rsconnect-python
Project-URL: Documentation, https://docs.posit.co/rsconnect-python
Provides-Extra: keyring
Provides-Extra: snowflake
Description-Content-Type: text/markdown

# [rsconnect-python](https://docs.posit.co/rsconnect-python)

The command-line interface for [Posit Connect](https://docs.posit.co/connect/) and [Posit Connect Cloud](https://connect.posit.cloud).

## Installation

### uv

```bash
uv tool install rsconnect-python
```

### pipx

```bash
pipx install rsconnect-python
```

### into your project

```bash
python -m pip install rsconnect-python
```

## Usage with Posit Connect

Log in to your Posit Connect server:

```bash
rsconnect login https://connect.example.com
```

Deploy your application:

```bash
rsconnect deploy shiny app.py --title "my shiny app"
```

Browser login requires Posit Connect 2026.02.0 or later. In remote containers,
or other sessions where the browser cannot reach the CLI's local callback, use
`--use-device-code` with Connect 2026.06.0 or later.

For older servers, or automation that cannot use identity tokens, [get an API
key](https://docs.posit.co/connect/user/api-keys/) and store it with
`rsconnect add`.
See the [authentication guide](https://docs.posit.co/rsconnect-python/#managing-server-information)
for identity token requirements and other login options.

[Read more about publisher and admin capabilities on the docs site.](https://docs.posit.co/rsconnect-python)

## Usage with Posit Connect Cloud

Store your credentials, logging in to [Posit Connect Cloud](https://connect.posit.cloud) through your browser:

```bash
rsconnect add --connect-cloud --account <YOUR-ACCOUNT-NAME> --name cloud
```

Deploy your application:

```bash
rsconnect deploy shiny app.py --name cloud --title "my shiny app"
```

For non-interactive use such as CI, pass client credentials with
`--client-id` and `--client-secret`, or the `CONNECT_CLOUD_CLIENT_ID` and
`CONNECT_CLOUD_CLIENT_SECRET` environment variables.

## Contributing

[Contributing docs](./CONTRIBUTING.md)
