Skip to content

CLI reference

jalth init

Initialize a new jalth mesh network.

Terminal window
jalth init [options]
FlagDescription
-d, --domain <domain>Custom domain for the registry and served services
--device-name <name>Name for this device
--email-domain <domain>Restrict membership to an email domain
--token <token>Cloudflare API token (skips interactive prompt)
--forceOverwrite MDM config for a different org without prompting
--ssh / --no-sshEnable or skip SSH setup (default: enabled)
--freshRe-initialize even if already set up
--unattendedHeadless admin bootstrap via service token
Terminal window
# Interactive setup
jalth init
# With custom domain
jalth init --domain myteam.com
# CI / headless server
jalth init --unattended --token $CF_API_TOKEN
# Non-interactive with all options
jalth init --domain myteam.com --device-name admin-box --token $CF_API_TOKEN --no-ssh
  • Requires a Cloudflare API token with recommended permissions
  • The token is bound to the Worker as a secret — not stored locally
  • Failed runs can be resumed by running jalth init again
  • See Create a mesh for the full walkthrough