Metadata-Version: 2.3
Name: jetbrains-cadence
Version: 0.0.2
Summary: JetBrains Cadence CLI
Author: Mikhail Meringov
Author-email: mikhail.meringov@jetbrains.com
Requires-Python: >=3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: awscli (>=1.41.12,<2.0.0)
Requires-Dist: click (==8.2.1)
Requires-Dist: httpx (>=0.28.1,<0.29.0)
Requires-Dist: keyring (>=25.6.0,<26.0.0)
Requires-Dist: pydantic (>=2.11.7,<3.0.0)
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
Description-Content-Type: text/markdown

# Cadence CLI


## Install
```shell
pip install jetbrains-cadence
```

This will create a `cadence` script in your current environment.


## Completions
To enable completions, run:
### bash
```bash
echo 'eval "$(_CADENCE_COMPLETE=bash_source cadence)"' >> ~/.bashrc
```
### zsh
```zsh
echo 'eval "$(_CADENCE_COMPLETE=zsh_source cadence)"' >> ~/.zshrc
```

---
## Set Server Endpoint
You can switch endpoint with 
```shell
CADENCE_SERVER_URL='test.jetbrains'
```

## Login

```shell
cadence login
```


or 
## Setup token manually
Go to [api.cadence.jetbrains.com](https://api.cadence.jetbrains.com/profile.html?item=accessTokens) | Profile Icon | Profile | Access Tokens

Create a new access token with 'Permission scope' set to '\<Same as current user>'.


Now login with
```shell
cadence login --browserless
```


Or add this access token to your environment via 
```shell
export CADENCE_TOKEN=<...>
```

## Run
```shell
cadence execution start --preset 'path/to/config' --project-id 'your-project-id'
```

## See status
```shell
cadence execution status --project-id 'your-project-id' --execution-id 'your-execution-id'
```

## Stop
```shell
cadence execution stop --project-id 'your-project-id' --execution-id 'your-execution-id'
```

