Command line tool to generate uuid's (v4) in the terminal written in Rust.
- Download the binary for your OS and architecture from the release
- Place the binary in your PATH and rename it to
uuid-tool
A pre-requisite is to have Rust installed.
git clone https://github.com/sillen102/uuid-tool.git
cd uuid-tool
cargo build --release
sudo cp target/release/uuid-tool /usr/local/bin/uuid-tool
git clone https://github.com/sillen102/uuid-tool.git
cd uuid-tool
cargo build --release
sudo cp target/release/uuid-tool /bin/uuid-tool
$ uuid-tool
4f7b9988-5837-4cf9-ae3f-d3ecdea24b89
$ uuid-tool -n 5
39a5b5ee-2f82-4ecd-82d6-e2bea5742bdd
93d36dd1-50a0-46ab-9b6b-7237fff7934e
5f3aab10-4a14-4807-9913-c9a15edc1b63
a8a7a8a5-1c80-49fa-be94-d29bae8fe412
31067641-dd5c-41ea-b183-51fac01efc89
$ uuid-tool -c
c2b47001-1181-44a6-87d6-ad82be8718e2
Copied to clipboard
$ uuid-tool -s ' - ' -n 2
eab09f14-552a-4afd-b237-c73414f03d30 - 879c84eb-e057-4570-ba6f-1122c362b5c2
$ uuid-tool -h
Usage: uuid-tool [OPTIONS]
Options:
-n, --number <NUMBER> Number of uuids to generate [default: 1]
-c, --copy-to-clipboard Copy generated uuids to clipboard
-s, --separator <SEPARATOR> Separator between uuids [default: new line]
-h, --help Print help information
-V, --version Print version information
The following commands work on an M1 Macbook Pro using the contents of this repository with cross installed.
- Rust
- Cross
- Docker
Install cross:
$ cargo install -f cross
$ cross build --target x86_64-pc-windows-gnu --release
$ cross build --target armv7-unknown-linux-gnueabihf --release
$ cross build --target aarch64-unknown-linux-gnu --release
$ cross build --target x86_64-unknown-linux-gnu --release
$ cross build --target x86_64-apple-darwin --release