Skip to content

Domain Management

Overall Usage

bash
aleph domain [OPTIONS] COMMAND [ARGS]...

Options

OptionTypeDescription
--helpShow this message and exit

Key Commands

CommandDescription
addAdd and link a Custom Domain
attachAttach resource to a Custom Domain
detachUnlink Custom Domain
infoShow Custom Domain Details

Add a Custom Domain

Add and link a Custom Domain

Usage

bash
aleph domain add [OPTIONS] FQDN

Arguments

ArgumentTypeDescription
FQDNTEXTFully Qualified Domain Name (e.g., aleph.cloud)

Options

OptionTypeDescription
--target[ipfs, program, instance]Resource type to target
--item-hashTEXTItem hash
--ownerTEXTOwner address. Defaults to current account address
--ask / --no-askPrompt user for confirmation [default: ask]
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--helpShow this message and exit
bash
# Add and link a custom domain
aleph domain add aleph.cloud --target ipfs --owner 0xYourAddress

# Add and link a custom domain with confirmation
aleph domain add aleph.cloud --target program --ask

Attach Resource to Custom Domain

Attach resource to a Custom Domain

Usage

bash
aleph domain attach [OPTIONS] FQDN

Arguments

ArgumentTypeDescription
FQDNTEXTFully Qualified Domain Name (e.g., aleph.cloud)

Options

OptionTypeDescription
--item-hashTEXTItem hash
--catch-all-pathTEXTChoose a relative path to catch all unmatched routes or a 404 error
--ask / --no-askPrompt user for confirmation [default: ask]
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--helpShow this message and exit
bash
# Attach resource to a custom domain
aleph domain attach aleph.cloud --item-hash ITEM_HASH --catch-all-path /404

# Attach resource with confirmation
aleph domain attach aleph.cloud --item-hash ITEM_HASH --ask

Detach Custom Domain

Unlink Custom Domain

Usage

bash
aleph domain detach [OPTIONS] FQDN

Arguments

ArgumentTypeDescription
FQDNTEXTFully Qualified Domain Name (e.g., aleph.cloud)

Options

OptionTypeDescription
--ask / --no-askPrompt user for confirmation [default: ask]
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--helpShow this message and exit
bash
# Detach a custom domain
aleph domain detach aleph.cloud

# Detach a custom domain with confirmation
aleph domain detach aleph.cloud --ask

Show Custom Domain Details

Fetch details of a Custom Domain

Usage

bash
aleph domain info [OPTIONS] FQDN

Arguments

ArgumentTypeDescription
FQDNTEXTFully Qualified Domain Name (e.g., aleph.cloud)

Options

OptionTypeDescription
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--helpShow this message and exit
bash
# Show details of a custom domain
aleph domain info aleph.cloud