{"id":22057068,"url":"https://github.com/fspoettel/getid","last_synced_at":"2025-03-23T16:22:44.508Z","repository":{"id":44818587,"uuid":"450507263","full_name":"fspoettel/getid","owner":"fspoettel","description":"A command-line tool to generate random ids. (uuidv4, nanoid, cuid, hostnames)","archived":false,"fork":false,"pushed_at":"2022-01-25T19:30:45.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T00:47:52.310Z","etag":null,"topics":["cli","id-generator","uuid"],"latest_commit_sha":null,"homepage":"","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/fspoettel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-01-21T13:43:20.000Z","updated_at":"2023-02-17T00:04:57.000Z","dependencies_parsed_at":"2022-09-19T06:50:12.226Z","dependency_job_id":null,"html_url":"https://github.com/fspoettel/getid","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspoettel%2Fgetid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspoettel%2Fgetid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspoettel%2Fgetid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fspoettel%2Fgetid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fspoettel","download_url":"https://codeload.github.com/fspoettel/getid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245129005,"owners_count":20565380,"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":["cli","id-generator","uuid"],"created_at":"2024-11-30T16:16:03.363Z","updated_at":"2025-03-23T16:22:44.477Z","avatar_url":"https://github.com/fspoettel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# getid\n\n\u003e A command-line tool to generate random ids. ([uuidv4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)), [nanoid](https://zelark.github.io/nano-id-cc/), [cuid](https://github.com/ericelliott/cuid), hostnames)\n\n[![Test Status](https://github.com/fspoettel/getid/actions/workflows/ci.yaml/badge.svg)](https://github.com/fspoettel/getid/actions/workflows/ci.yaml)\n[![Crate](https://img.shields.io/crates/v/getid.svg)](https://crates.io/crates/getid)\n\n## Install\n\n- Install a recent version of Rust using [rustup](https://rustup.rs/) or update\nit with:\n```\n# rustup update\n```\n\n- Install `getid` with cargo:\n```\n# cargo install getid\n```\n\n## Usage\n\n```sh\n# getid --help\n\ngetid -- Generate a random id.\n\nUsage:\n  getid [--help, --version]\n  getid \u003ccommand\u003e [\u003cflags\u003e...]\n\nCommands:\n  cuid           Generate a cuid.\n  hostname       Generate a heroku-like hostname. [alias: heroku]\n  nanoid         Generate a nanoid. [alias: nano]\n  uuidv4         Generate a uuidv4. [alias: uuid]\n\nOptions:\n  -v, --version  Show program version.\n  -h, --help     Show this help again.\n\nExamples:\n  getid cuid\n  getid hostname\n  getid nanoid\n  getid uuidv4\n\nType 'getid \u003ccommand\u003e --help' for information on a specific command.\n```\n\n## Formats\n\n### cuid\n\n```sh\n# getid cuid --help\n\ngetid cuid -- Generate a cuid.\n\nUsage:\n  getid cuid [--slug]\n\nOptions:\n  --slug      Generate a smaller id (7-10 characters) intended for short urls.\n  -h, --help  Show this help again.\n\nFor more information on the 'cuid' format, see: https://github.com/ericelliott/cuid.\n```\n\n### hostname\n\n```sh\n# getid hostname --help \n\ngetid hostname -- Generate a heroku-like hostname.\n\nUsage:\n  getid hostname [--token_length \u003clen\u003e]\n\nOptions:\n  --token_length \u003clen\u003e  Length of the appended token. [default: 4]\n  -h, --help            Show this help again.\n\nAliases:\n  getid heroku\n```\n\n### nanoid\n\n```sh\n# getid nanoid --help\n\ngetid nanoid -- Generate a nanoid.\n\nUsage:\n  getid nanoid [--length \u003clen\u003e]\n\nOptions:\n  --length \u003clen\u003e  Length of generated id. [default: 21]\n  -h, --help      Show this help again.\n\nAliases:\n  getid nano\n\nFor more information on the 'nanoid' format, see: https://zelark.github.io/nano-id-cc/.\n```\n\n### uuidv4\n\n```sh\n# getid uuidv4 --help\n\ngetid uuidv4 -- Generate a uuidv4.\n\nUsage:\n  getid uuidv4 [--urn]\n\nOptions:\n  --urn       Format the generated id as 'urn'.\n  --simple    Format the generated id without hyphens.\n  -h, --help  Show this help again.\n\nAliases:\n  getid uuid\n\nFor more information on the 'uuidv4' format, see: https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random).\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffspoettel%2Fgetid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffspoettel%2Fgetid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffspoettel%2Fgetid/lists"}