Enclosed CLI

Create and manage secure notes directly from your terminal. No accounts, no authentication — just simple, secure note sharing.

Installation

Install the CLI globally using your preferred package manager

Using npm

npm install -g @enclosed/cli

Using yarn

yarn global add @enclosed/cli

Using pnpm

pnpm add -g @enclosed/cli

No Account Needed

Create secure notes without signing up or logging in

File Attachments

Attach and share files securely alongside your notes

Self-Destruct

Set notes to auto-delete after reading or by timer

Custom Instance

Configure to use your own Enclosed instance

Usage Examples

Create a note

Create a secure note from the command line

enclosed create "Hello, World!"

Create from file

Pipe file contents to create a note

cat file.txt | enclosed create --stdin

With attachments

Attach files to your note

enclosed create --file document.pdf "Check this out"

Self-destruct

Note deletes after being read

enclosed create --deleteAfterReading "Secret message"

Password protected

Add password protection

enclosed create --password "mypassword" "Secure note"

Set expiration

Auto-delete after specified time

enclosed create --ttl 3600 "Expires in 1 hour"

Use twn.cx Instance

By default, the CLI uses enclosed.cc. Configure it to use twn.cx instead:

enclosed config set instance-url https://twn.cx

Viewing Notes

View notes directly from the terminal:

Basic viewing:

enclosed view <note-url>

With password:

enclosed view --password "mypassword" <note-url>

Ready to Get Started?

Install the CLI and start creating secure notes from your terminal in seconds.

npm install -g @enclosed/cli
View Full Docs