{"id":20063886,"url":"https://github.com/writeas/cmd","last_synced_at":"2025-10-29T23:44:39.703Z","repository":{"id":26925023,"uuid":"30387225","full_name":"writeas/cmd","owner":"writeas","description":"Simple command line pastebin.","archived":false,"fork":false,"pushed_at":"2016-04-23T04:05:56.000Z","size":8,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T02:12:58.928Z","etag":null,"topics":["go","pastebin-service"],"latest_commit_sha":null,"homepage":"http://cmd.write.as","language":"Go","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/writeas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-06T00:55:46.000Z","updated_at":"2022-05-30T21:02:37.000Z","dependencies_parsed_at":"2022-07-24T12:46:13.784Z","dependency_job_id":null,"html_url":"https://github.com/writeas/cmd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writeas%2Fcmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writeas%2Fcmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writeas%2Fcmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writeas%2Fcmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writeas","download_url":"https://codeload.github.com/writeas/cmd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252542521,"owners_count":21764984,"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","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":["go","pastebin-service"],"created_at":"2024-11-13T13:44:06.287Z","updated_at":"2025-10-29T23:44:39.642Z","avatar_url":"https://github.com/writeas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Write.as\n========\n[![Build Status](https://travis-ci.org/writeas/cmd.svg)](https://travis-ci.org/writeas/cmd) [![#writeas on freenode](https://img.shields.io/badge/freenode-%23writeas-blue.svg)](http://webchat.freenode.net/?channels=writeas) [![Public Slack discussion](http://slack.write.as/badge.svg)](http://slack.write.as/)\n\nThis is a simple HTTP-based interface for publishing text. Users POST whatever they want to publish using the `w` parameter. When the request finishes, a URL is returned — this is the publicly-accessible address to the post on the web.\n\n## Try it\n```\necho \"Hello world, by $USER\" | curl -F 'w=\u003c-' http://cmd.write.as\n```\n\n## Run it yourself\n```\nUsage:\n  cmd [options]\n\nOptions:\n  --debug\n       Enables garrulous debug logging.\n  -o   \n       Directory where text files will be stored. If not supplied, will try to\n       use database for storage (see Environment Variables).\n  -s\n       Directory where required static files exist (like the banner).\n  -p\n       Port to listen on.\n\nEnvironment Variables:\n  WA_USER\n       Database user.\n  WA_PASSWORD\n       Database password.\n  WA_HOST\n       Database host. Default: localhost\n  WA_DB\n       Database name.\n```\n\nThe default configuration (without any flags) is essentially the following line. **You'll need to supply the `-o` flag or database env variables to store posts**.\n\n```\ncmd -s ./static -p 8080\n```\n\n## How it works\nThe user's input is simply written to a flat file in a given directory. To provide web access, a web server (sold separately) serves all files in this directory as `plain/text`. That's it!\n\n## License\nThis project is licensed under the MIT open source license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwriteas%2Fcmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwriteas%2Fcmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwriteas%2Fcmd/lists"}