Skip to content

feat: Add init cli command for generating config.toml and secrets - #467

Merged
86667 merged 2 commits into
mainfrom
hs_cli_init_cmd
Jun 29, 2026
Merged

feat: Add init cli command for generating config.toml and secrets#467
86667 merged 2 commits into
mainfrom
hs_cli_init_cmd

Conversation

@86667

@86667 86667 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Create config.toml without having to run Homeserver. This will be replaced by the Homeserver CLI work but is useful now for the new docs.

Comment thread pubky-homeserver/src/main.rs Outdated
data_dir.init()?;
println!(
"Data directory initialized at {}.\n\
Edit {} to configure PostgreSQL and other settings, then run `pubky-homeserver` to start.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I run $ cargo r -- --data-dir /tmp/pubky init it prints me:

[...] run pubky-homeserver to start.

But it should print: run pubky-homeserver --data-dir /tmp/pubky to start.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed that line of the message

@86667
86667 force-pushed the hs_cli_init_cmd branch from 2296840 to 94ddf6f Compare June 29, 2026 17:47
@86667
86667 merged commit d6c5afc into main Jun 29, 2026
15 checks passed
@86667
86667 deleted the hs_cli_init_cmd branch June 29, 2026 18:19
@MCarlomagno MCarlomagno mentioned this pull request Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants