https://github.com/jessicarod7/envsh
convenient CLI for envs.sh
https://github.com/jessicarod7/envsh
Last synced: 22 days ago
JSON representation
convenient CLI for envs.sh
- Host: GitHub
- URL: https://github.com/jessicarod7/envsh
- Owner: jessicarod7
- License: mit
- Created: 2025-02-01T03:06:11.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-09T19:22:38.000Z (3 months ago)
- Last Synced: 2025-04-14T05:57:41.549Z (24 days ago)
- Language: Rust
- Homepage: https://github.com/envs-net/0x0
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# envsh
A convenient command-line tool for sending URLs and files to [envs.sh](https://envs.sh)
## Installation
```shell
cargo install envsh
```## Usage
```shellsession
$ envsh -h
send and shorten stuff with envs.shUsage: envsh [OPTIONS]
envshCommands:
manage One option lol
help Print this message or the help of the given subcommand(s)Arguments:
A file or URL to send to the URL host/shortenerOptions:
-d, --display-secret Print X-Token (and expiry date)
-s, --shorten Shorten a URL instead of sending the file it points to
-S, --secret Make the resulting URL difficult to guess
-e, --expiresUsage: envsh manage <--expires |--delete>
Arguments:
Existing envs.sh URL
Secret X-Token to manage URLOptions:
-e, --expires Specify when the URL should expire, in hours or epoch milliseconds
-d, --delete Delete the shared URL immediately (requires `token`)
-h, --help Print help```
### Examples
Upload a local file:
```shellsession
$ envsh test
Succesful! https://envs.sh/Ej-.txt
```Upload a file at a remote URL:
```shellsession
$ envsh https://example.com/
Succesful! https://envs.sh/tJ.htm
```Shorten a URL:
```shellsession
$ envsh -s https://example.com/
Succesful! https://envs.sh/20X
```Upload a local file, expiring after 1 hour, and print X-Token:
```shellsession
$ envsh -e 1 -d .gitignore
Succesful! https://envs.sh/VxK.txt
Expires at 2025-02-09 (Sunday), 14:55:27.476 [America/Toronto]
X-Token:
```Edit expiry time of uploaded file to 16:00, using a Unix timestamp:
```shellsession
$ envsh manage -e 1739134800000 https://envs.sh/VxK.txt
Change accepted!
```Delete an uploaded file immediately:
```shellsession
$ envsh manage -d https://envs.sh/VxK.txt
Change accepted!
```