⁂
w3name
Content addressing for a dynamic web. Now available from the command line!
## About
The `w3name-cli` binary crate provides a command-line tool called `w3name`, which can be used to interact with the w3name service.
For more about w3name in general, see the [main github repository](https://github.com/web3-storage/w3name).
## Install
### Binary CLI releases
To download a pre-compiled binary of the `w3name` command-line tool, grab the `.tar.gz` file for your platform from the [latest release](https://github.com/yusefnapora/w3name-rust-client/releases).
### Using `cargo install`
Make sure to read the [Native dependencies](#native-dependencies) section below!
```sh
cargo install w3name-cli
```
### Native dependencies
To install with `cargo`, you'll need the [Protocol Buffers compiler](https://grpc.io/docs/protoc-installation/), and the `protoc` command must be on your `$PATH`. Version `3.20.2` is known to work, and other 3.x versions are likely to work as well.
If you can't install `protoc`, but you do have `cmake`, you can set the `protoc-src` feature, which will build the protobuf compiler from source at build time.
You'll also need `perl`, since we build openssl from source, and `perl` is required by the build process.
## Using the `w3name` command-line tool
The `w3name` command line tool has commands for creating a new name keypair, publishing values, and retrieving the latest value for a name.
You can get an overview with `w3name help`:
```
w3name 0.1.0
A tool for creating verifiable names in a web3 world
USAGE:
w3name
OPTIONS:
-h, --help Print help information
-V, --version Print version information
SUBCOMMANDS:
create Create a new public/private keypair and save it to disk
help Print this message or the help of the given subcommand(s)
publish Publish a new value for a name, signed with the name's private key
resolve Lookup the current value for a name record
```
Each of the subcommands has it's own help text available using `w3name help ` or `w3name --help`, for example:
```sh
w3name help create
```
```
w3name-create
Create a new public/private keypair and save it to disk
USAGE:
w3name create [OPTIONS]
OPTIONS:
-h, --help
Print help information
-o, --output