portals
The web portals of the project (the one in use) and their custom domains.
Portals themselves are created in the console, which also changes their other settings;
here you see them and set their sign-in methods.
portal is an alias of portals. A portal is named by its name, its generated name
(quiet-harbor) or its id. Adding, checking and removing domains, setting the primary host
and changing the sign-in methods need an owner or admin and a read-write key.
space portals list
space portals listEach portal’s name, address, primary host and custom domains.
space portals show
space portals show <portal>The portal’s name, id, address, primary host, custom domains, developer MCP address and
sign-in methods. --json prints the portal as the API answers it.
space portals sign-in
space portals sign-in <portal>
space portals sign-in <portal> [--agentspaces on|off] [--password on|off] [--magic-link on|off]
space portals sign-in <portal> [--google off|agentspaces|own] [--google-client-id ID] [--google-client-secret-file FILE]
space portals sign-in <portal> [--microsoft off|agentspaces|own] [--microsoft-client-id ID] [--microsoft-tenant TENANT] [--microsoft-client-secret-file FILE]
space portals sign-in <portal> [--two-factor off|optional|required] [--signup-domains DOMAINS] [--signups invite|machine|open]Without options it prints how visitors sign in and who may sign up; with options it changes what you give, as the console’s Sign-in tab does, and prints the result:
| Option | Sets |
|---|---|
--agentspaces on|off | Sign-in with an AgentSpaces account; on by default. |
--agentspaces-scope org | Who may sign in with AgentSpaces: org, the organization’s members, the only choice (everyone is gone). |
--password on|off | Email and password. |
--google, --microsoft | off, agentspaces (on, with the AgentSpaces client) or own (on, with your own client). |
--google-client-id, --microsoft-client-id, --microsoft-tenant | Your own client’s id, and for Microsoft its Entra tenant ('' clears it). |
--google-client-secret-file, --microsoft-client-secret-file | Your own client’s secret, read from a file (- for stdin), never from the command line. Send it once: the region keeps it. |
--magic-link on|off | Email me a link. |
--two-factor | off, optional or required. |
--signup-domains | The allowed email domains, comma separated ('': any). |
--signups | invite, machine (the machine approves each sign-up) or open. |
Leave at least one way in: turning password sign-in off needs AgentSpaces, a provider or magic links on. For example, a portal only the organization’s members sign in to:
space portals sign-in shop --agentspaces on --password off --google off --microsoft off --magic-link offFor a test or preview environment, AgentSpaces sign-in is the easy way in: you and your organization sign in with the accounts you already have, no passwords or test users to make. To let the organization’s members in with their AgentSpaces accounts:
space portals sign-in shop --agentspaces onFrom inside the machine behind the portal, space-env web-portal edit takes the same
options, without the client secrets (From the machine).
space portals domains list
space portals domains list <portal>Each custom domain with its state, what is missing or failed, and the DNS records to create.
space portals domains add
space portals domains add <portal> <domain>Adds the domain and prints the two records to create: a CNAME to the portal’s address, or to its primary host when that is a custom domain (an A record for a zone’s apex), and the ownership TXT record.
space portals domains check
space portals domains check <portal> <domain>Looks the records up now. With both there, the domain is verified and gets its
certificate; the state follows on the next list.
space portals domains primary
space portals domains primary <portal> <host>
space portals domains primary <portal> --noneMakes <host>, the portal’s address or one of its verified domains, the primary host:
the portal’s other addresses redirect there. --none removes it.
space portals domains remove
space portals domains remove <portal> <domain> [-y]Removes the domain (alias rm); asks first unless -y.