Skip to content

Domain Management

The domain command group allows you to manage custom domains attached to websites, programs, or instances on the Aleph Cloud network.

Overall Usage

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

Options

OptionDescription
--jsonOutput results as JSON
--helpShow this message and exit

Key Commands

CommandDescription
listList all domains for an account
addAdd (or update) a domain entry pointing at a target
attachRe-point an existing domain to a different target
detachClear a domain's target
removeRemove a domain entry (soft-delete)

List Domains

List all domains for an account.

Usage

bash
aleph domain list [OPTIONS]

Options

OptionDescription
--address <ADDR>Inspect another address's domains
--jsonOutput results as JSON
--helpShow this message and exit
bash
# List domains for your account
aleph domain list

# List domains for a specific address
aleph domain list --address 0xYourAddress

# List domains as JSON
aleph domain list --json

Add a Custom Domain

Add (or update) a domain entry pointing at a target (website name or message hash).

Usage

bash
aleph domain add [OPTIONS] --target <TARGET> <DOMAIN>

Arguments

ArgumentDescription
DOMAINFully Qualified Domain Name (e.g. aleph.cloud)

Options

OptionDescription
--target <TARGET>Website name (resolved against your websites aggregate) or a raw message hash
--kind <KIND>Target type [default: ipfs] [possible values: ipfs, program, instance]
--catch-all-path <PATH>Catch-all path for IPFS sites (default: /404.html)
--forceOverwrite existing entry without erroring
--channel <CHANNEL>Channel name
--on-behalf-of <ADDR>Sign on behalf of another address (requires authorization); the aggregate write and any website-name lookup target the owner
--account <ACCOUNT>Named account (defaults to the active account)
--private-key <KEY>Hex-encoded private key
--chain <CHAIN>Signing chain
--dry-runBuild and sign the message but don't submit it
--jsonOutput results as JSON
--helpShow this message and exit
bash
# Add a domain pointing at a website or program hash
aleph domain add --target ITEM_HASH example.com

# Add a domain for an instance
aleph domain add --target ITEM_HASH --kind instance example.com

# Add on behalf of another address
aleph domain add --target ITEM_HASH example.com --on-behalf-of 0xOwnerAddress

# Overwrite an existing entry
aleph domain add --target ITEM_HASH example.com --force

Attach a Domain to a Resource

Re-point an existing domain to a different target. Use --on-behalf-of <ADDRESS> for delegated updates.

Usage

bash
aleph domain attach [OPTIONS] <DOMAIN> --to <TARGET>

Arguments

ArgumentDescription
DOMAINThe domain to re-point

Options

OptionDescription
--to <TARGET>Website name or message hash
--channel <CHANNEL>Channel name
--on-behalf-of <ADDR>Sign on behalf of another address (requires authorization)
--account <ACCOUNT>Named account (defaults to the active account)
--private-key <KEY>Hex-encoded private key
--chain <CHAIN>Signing chain
--dry-runBuild and sign the message but don't submit it
--jsonOutput results as JSON
--helpShow this message and exit
bash
# Attach a domain to a resource
aleph domain attach example.com --to ITEM_HASH

# Attach on behalf of another address (delegated update)
aleph domain attach example.com --to ITEM_HASH --on-behalf-of 0xOwnerAddress

Detach a Domain

Clear a domain's target (entry is kept, message_id emptied).

Usage

bash
aleph domain detach [OPTIONS] <DOMAIN>
bash
# Detach a custom domain
aleph domain detach example.com

Remove a Domain Entry

Remove a domain entry (soft-delete: sets the entry to null).

Usage

bash
aleph domain remove [OPTIONS] <DOMAIN>

Options

OptionDescription
--yesSkip the confirmation prompt
--channel <CHANNEL>Channel name
--on-behalf-of <ADDR>Sign on behalf of another address (requires authorization)
--account <ACCOUNT>Named account (defaults to the active account)
--private-key <KEY>Hex-encoded private key
--chain <CHAIN>Signing chain
--dry-runBuild and sign the message but don't submit it
--jsonOutput results as JSON
--helpShow this message and exit
bash
# Remove a domain entry
aleph domain remove example.com

# Remove without confirmation
aleph domain remove example.com --yes