Basenames CLI is a command-line interface tool for interacting with the Basenames contract on the Base network. It provides easy-to-use commands for checking balances, availability, expiration, and more.
- Go 1.21 or higher
-
Clone the repository:
git clone https://github.com/hughescoin/basenames-cli.git cd basenames-cli -
Build the CLI:
go build -o basenames -
Move the executable to your system's PATH:
For Unix-like systems (Linux, macOS):
sudo mv basenames /usr/local/bin/For Windows: Add the directory containing the
basenames.exeto your PATH environment variable.
Here are some basic commands to get you started:
-
Check balance:
basenames check balance --address 0x1234567890123456789012345678901234567890 -
Check availability:
basenames check availability --tokenId example -
Check expiration:
basenames check expiration --tokenId example -
Get help:
basenames --help
For more commands and detailed usage, please refer to the full documentation.
The CLI uses a configuration file located at ~/.basenames/config.yaml. You can edit this file to set default values for the RPC URL, private key, and other options.
- Add versioning to basenamescli
- Add buy basenames if available
- check basename by basenam / not tokenId
- Add session keys
- Name resolution
- Welcome user by Basename if available
- Messaging?
- Add friends