# Sharing

Everything is shared by invite. Nothing is shared until the other person accepts.

```sh
lp share invoice-reconciliation @haroon            # a pack (name or space/pack); role read (default) or --role write
lp share waleed-packs @haroon --role write         # a whole space
lp share OPENAI_API_KEY @haroon --ttl 7d           # a key (use only, never the value; see keys.md)
lp share invoice-reconciliation @haroon --notify team-discord   # also post the invite to a channel
```

The person invited sees a notice on their next `lp` command (`lp: 1 invite from @waleed: pack ... Run lp invites.`), then:

```sh
lp invites                      # incoming and sent (--json)
lp invite accept i_0123456789   # packs/spaces are downloaded; key grants start now and last --ttl
lp invite reject i_0123456789
```

The sender can `lp invite cancel <id>` while it is pending. `lp unshare <thing> @haroon` removes access immediately
(and cancels pending invites for it). A rejected or cancelled invite gives no access and can't be accepted later.

Roles: `read` (see, download, run checks), `write` (also push to the space), `use` (keys only).

## Notifications

```sh
printf %s "$WEBHOOK_URL" | lp key add TEAM_DISCORD_WEBHOOK --hosts discord.com
lp channel add team-discord --type discord --key TEAM_DISCORD_WEBHOOK
lp notify team-discord "invoice-reconciliation 0.1.1 is out"
lp notify team-discord --run <workflow-run-id>
```

Types: `discord`, `slack` (webhook URL in the vault), `telegram` (`--chat-id`, bot token in the vault), `email` (Resend;
`--to`, `--from`). Channel files hold names and key NAMES only.


---

Canonical URL: https://logicpacks.io/sharing.md

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
