Repository navigation
Add SpacetimeAuth CLI command - #5251
Open
JulienLavocat wants to merge 5 commits into
Open
JulienLavocat wants to merge 5 commits into
JulienLavocat wants to merge 5 commits into
Conversation
JulienLavocat
force-pushed
the
julien/spacetimeauth-cli
branch
2 times, most recently
from
June 8, 2026 19:58
76e69af to
89e6cc4
Compare
JulienLavocat
force-pushed
the
julien/spacetimeauth-cli
branch
3 times, most recently
from
June 26, 2026 15:00
ceaf34b to
ec430f3
Compare
JulienLavocat
force-pushed
the
julien/spacetimeauth-cli
branch
6 times, most recently
from
August 6, 2026 14:45
06e649c to
13b3da1
Compare
JulienLavocat
marked this pull request as ready for review
August 12, 2026 14:52
JulienLavocat
force-pushed
the
julien/spacetimeauth-cli
branch
4 times, most recently
from
August 14, 2026 14:43
8c823b0 to
f2deada
Compare
JulienLavocat
force-pushed
the
julien/spacetimeauth-cli
branch
from
August 19, 2026 14:36
c94d39c to
c719d73
Compare
JulienLavocat
force-pushed
the
julien/spacetimeauth-cli
branch
from
October 1, 2026 11:22
c719d73 to
c07ce7a
Compare
clockwork-tien
requested changes
Oct 8, 2026
clockwork-tien
left a comment
Contributor
There was a problem hiding this comment.
I have left a comment
JulienLavocat
force-pushed
the
julien/spacetimeauth-cli
branch
from
October 8, 2026 15:46
34b8e7f to
5dd34a2
Compare
The client subcommands never sent `database`, which the server requires, so every client request was rejected. They now take a `<database>` argument and a `--name` option instead of the ambiguous positional name. - Error instead of panicking when not logged in - Derive the API URL from DEFAULT_AUTH_HOST (no trailing slash) - Leave color and favicon validation to the server - Allow empty values to clear list settings - Pretty-print responses and collapse the per-command handlers - Add unit tests; regenerate the CLI reference - Remove duplicated CODEOWNERS entry
The SpacetimeAuth management API no longer returns client secrets except from `client get --include-secret`. After `client create --private` and `client set private true`, print the command that retrieves the secret. The hint goes to stderr so stdout stays the JSON response.
- `config reset` keeps the display name and Steam settings; it does not reset everything. - `idp set` also enables the provider. - The database argument is a name; identities are rejected. - Document comma-separated lists and that an empty value clears them.
Passing the secret as an argument saves it to shell history. The argument is now optional: when omitted, the secret is prompted for with hidden input, or read from stdin when piped.
JulienLavocat
force-pushed
the
julien/spacetimeauth-cli
branch
from
October 14, 2026 10:04
5dd34a2 to
393dd38
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
Extends our CLI to add a management interface for SpacetimeAuth (
spacetime auth)API and ABI breaking changes
None.
Rollback safety impact
n/a
Expected complexity level and risk
Testing
Use a throwaway database: these commands overwrite its SpacetimeAuth settings.
Setup
cargo run -p spacetimedb-cli -- auth …(shown asspacetime auth …).spacetime loginif you are not logged in.Pass the database name (not its identity) as
<db>.Checks
spacetime auth idp set <db> github test-id test-secret→ the dashboard's Identity Providers page shows GitHub enabled with client ID
test-id.spacetime auth config set <db> color.primary '#ff00aa'(keep the quotes)→ the Settings page shows the new primary color.
spacetime auth client create <db> --name review --private→ prints the client without its secret, plus a hint. Run the hinted command and check it returns the secret. The client appears on the Clients page.
client createagain →409 Conflict, "already exists".spacetime auth config set <db> color.primary nope→400 Bad Requestwith the reason.Cleanup