Migrating to defakto-cli
The defakto CLI is the Defakto-branded successor to spirlctl, built from the same codebase and released in lockstep at the same version. Every command, flag, and feature is identical; only the branding differs. spirlctl continues to work, but we recommend defakto for new installations.
To migrate, install defakto-cli and account for the differences below.
What changes
| spirlctl | defakto | |
|---|---|---|
| Command name | spirlctl | defakto |
| Default API endpoint | api.spirl.com | api.defakto.security |
| Login (SSO) domain | auth.api.spirl.com | auth.api.defakto.security |
| Environment variables | SPIRL_ prefix | DEFAKTO_ prefix |
| Config and credentials | ~/.spirl | ~/.defakto |
| dev-id socket | unix:/tmp/spirl/devid/workload.sock | unix:/tmp/defakto/devid/workload.sock |
| Attribution headers | x-spirl-client, x-spirl-client-version | x-defakto-client, x-defakto-client-version |
| Audit client name | spirlctl | defakto-cli |
Anywhere the documentation shows spirlctl <command>, run defakto <command> instead.
Migration notes
- Log in again.
defaktokeeps its configuration and login session in~/.defakto, so yourspirlctlsession does not carry over — rundefakto loginafter installing. If you customized~/.spirl/config.json, copy it to~/.defakto/config.json. - Enterprise SSO. Login redirects go through
auth.api.defakto.security, so your IDP must allow-list the new CLI Redirect URL. See Enterprise SSO Configuration. - Environment variables. Rename
SPIRL_-prefixed variables toDEFAKTO_, e.g.SPIRL_ENDPOINTbecomesDEFAKTO_ENDPOINT. - Network egress. If your network restricts outbound traffic, allow the
defakto.securityendpoints. If your egress proxy filters or logs request headers, account for thex-defakto-clientandx-defakto-client-versionheaders. - dev-id workloads.
defakto dev-id servelistens onunix:/tmp/defakto/devid/workload.sockby default; update workloads that connect to the old socket path. dev-id configuration and fetched SVIDs live under~/.defakto/dev-id/. - Audit and SIEM. API activity from the
defaktoCLI is attributed to the client namedefakto-cliin audit events and the Console. Update SIEM rules or saved filters that match onspirlctl.