{"id":13687796,"url":"https://github.com/orhun/rustypaste-cli","last_synced_at":"2025-10-26T21:37:42.185Z","repository":{"id":57665962,"uuid":"407923805","full_name":"orhun/rustypaste-cli","owner":"orhun","description":"A CLI tool for rustypaste","archived":false,"fork":false,"pushed_at":"2025-10-22T18:44:40.000Z","size":818,"stargazers_count":74,"open_issues_count":4,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-22T20:41:02.990Z","etag":null,"topics":["cli","file-upload","file-uploader","hacktoberfest","pastebin","rust","rustypaste","upload"],"latest_commit_sha":null,"homepage":"https://github.com/orhun/rustypaste","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orhun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"orhun","patreon":"orhunp","custom":["https://www.buymeacoffee.com/orhun"]}},"created_at":"2021-09-18T17:23:44.000Z","updated_at":"2025-10-22T18:44:37.000Z","dependencies_parsed_at":"2023-10-03T17:05:29.169Z","dependency_job_id":"c3c9ff87-5d3a-48c2-8ad1-a83bea72199d","html_url":"https://github.com/orhun/rustypaste-cli","commit_stats":{"total_commits":161,"total_committers":5,"mean_commits":32.2,"dds":0.3788819875776398,"last_synced_commit":"401265b2dc7da00bc20b1262bd7b19758022ecc4"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/orhun/rustypaste-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Frustypaste-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Frustypaste-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Frustypaste-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Frustypaste-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orhun","download_url":"https://codeload.github.com/orhun/rustypaste-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Frustypaste-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281178947,"owners_count":26456678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","file-upload","file-uploader","hacktoberfest","pastebin","rust","rustypaste","upload"],"created_at":"2024-08-02T15:01:00.726Z","updated_at":"2025-10-26T21:37:42.147Z","avatar_url":"https://github.com/orhun.png","language":"Rust","readme":"\u003ca href=\"https://github.com/orhun/rustypaste-cli\"\u003e\u003cimg src=\"img/logo.png\" width=\"500\"\u003e\u003c/a\u003e\n\nA CLI tool for [**rustypaste**](https://github.com/orhun/rustypaste).\n\n![demo](img/demo.gif)\n\n## Installation\n\n### crates.io\n\n```sh\ncargo install rustypaste-cli\n```\n\n#### Features\n\n- `use-native-certs`: makes the default TLS implementation use the OS' trust store. [\\*](https://github.com/algesten/ureq#https--tls--ssl) (disabled)\n\nTo enable crate features, use the `--features` flag as follows:\n\n```sh\ncargo install rustypaste-cli --features use-native-certs\n```\n\n### Arch Linux\n\n```\npacman -S rustypaste-cli\n```\n\n### Alpine Linux\n\n`rustypaste-cli` is available for [Alpine Edge](https://pkgs.alpinelinux.org/packages?name=rustypaste-cli\u0026branch=edge). It can be installed via [apk](https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper) after enabling the [testing repository](https://wiki.alpinelinux.org/wiki/Repositories).\n\n```sh\napk add rustypaste-cli\n```\n\n### Binary releases\n\nSee the available binaries on [releases](https://github.com/orhun/rustypaste-cli/releases/) page.\n\n### Build from source\n\n```sh\ngit clone https://github.com/orhun/rustypaste-cli.git\ncd rustypaste-cli/\ncargo build --release\n```\n\n## Usage\n\n`rpaste [options] \u003cfile(s)\u003e`\n\n```\n-h, --help           prints help information\n-v, --version        prints version information\n-V, --server-version retrieves the server version\n-l, --list           lists files on the server\n-d, --delete         delete files from server\n-o, --oneshot        generates one shot links\n-p, --pretty         prettifies the output\n-c, --config CONFIG  sets the configuration file\n-s, --server SERVER  sets the address of the rustypaste server\n-a, --auth TOKEN     sets the authentication or delete token\n-u, --url URL        sets the URL to shorten\n-r, --remote URL     sets the remote URL for uploading\n-e, --expire TIME    sets the expiration time for the link\n-n, --filename NAME  sets and overrides the filename\n```\n\n### Set credentials\n\nEither set the credentials on the command line (not recommended):\n\n```sh\nrpaste -s \"https://paste.example.com\" -a \"\u003ctoken\u003e\"\n```\n\nor specify them in the [configuration file](#configuration) as follows:\n\n```toml\n[server]\nauth_token = \"\u003ctoken\u003e\"\ndelete_token = \"\u003cdelete_token\u003e\"\n```\n\nIt is also possible to use these tokens from a file:\n\n```toml\n[server]\nauth_token_file = \"~/example/auth-token\"\ndelete_token_file = \"~/example/delete-token\"\n```\n\nThe contents should be only the token, all whitespace will be trimmed.\n\n### Upload files\n\n```sh\nrpaste awesome.txt other.txt\n```\n\n### Upload from stdin\n\n```sh\necho \"Hello World\" | rpaste -\n```\n\n### Shorten URLs\n\n```sh\nrpaste -u https://example.com/some/long/url\n```\n\n### Paste from URL\n\n```sh\nrpaste -r https://example.com/file.txt\n```\n\n### One shot\n\n```sh\nrpaste -o disappear_after_seen.txt\n```\n\n### One shot URL\n\n```sh\nrpaste -ou https://example.com/some/long/url\n```\n\n### Expiration\n\n```sh\nrpaste -e 10min expires_in_10_minutes.txt\n```\n\n```sh\nrpaste -e 1hour -u https://example.com/expire/1hour\n```\n\n\\* Supported units: `ns`, `us`, `ms`, `sec`, `min`, `hours`, `days`, `weeks`, `months`, `years`\n\n### List uploaded files\n\n```sh\nrpaste -l\n```\n\n\\* Use `-p` for table output instead of JSON.\n\n### Delete files from server\n\n```sh\nrpaste -d awesome.UA86.txt other.JSNI.txt\n```\n\n### Override the filename\n\n```sh\nrpaste -n filename-on-server.txt awesome.txt\n```\n\n\\* rustypaste \u003e=0.15.0 is required for this argument to work, otherwise the filename will not be overridden.\n\n### Extras\n\n- Show a _prettier_ output: `rpaste -p [...]`\n- [Disable colors](https://no-color.org/) in the output: `NO_COLOR=1 rpaste -p [...]`\n\n## Configuration\n\nThe configuration file can be specified via `--config` argument and `RPASTE_CONFIG` environment variable or it can be placed to the following global locations:\n\n- `\u003cconfig_dir\u003e` `/` `rustypaste/config.toml`\n- `\u003chome_dir\u003e` `/` `.rustypaste/config.toml`\n\n`\u003cconfig_dir\u003e` depends on the platform as shown in the following table:\n\n| Platform | Value                                                                            | Example                                                               |\n|----------|----------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| Linux    | • $XDG_CONFIG_HOME \u003cbr\u003e • $HOME/.config                                          | /home/alice/.config                                                   |\n| macOS    | • $XDG_CONFIG_HOME \u003cbr\u003e • $HOME/.config \u003cbr\u003e • $HOME/Library/Application Support | • /home/alice/.config \u003cbr\u003e • /Users/Alice/Library/Application Support |\n| Windows  | {FOLDERID_RoamingAppData}                                                        | C:\\Users\\Alice\\AppData\\Roaming                                        |\n\nSee [config.toml](./config.toml) for configuration options.\n\n## Contributing\n\nPull requests are welcome!\n\n#### License\n\n\u003csup\u003e\nAll code is licensed under \u003ca href=\"LICENSE\"\u003eThe MIT License\u003c/a\u003e.\n\u003c/sup\u003e\n","funding_links":["https://github.com/sponsors/orhun","https://patreon.com/orhunp","https://www.buymeacoffee.com/orhun"],"categories":["cli"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Frustypaste-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forhun%2Frustypaste-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Frustypaste-cli/lists"}