feat: add Secretive CLI management commands - #797
Open
illera88 wants to merge 3 commits into
Open
Conversation
illera88
marked this pull request as ready for review
April 11, 2026 19:03
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.
Why
Secretive currently assumes an interactive GUI setup flow. That works for individual users, but it breaks down for fleet deployment where a management tool like Kandji needs to provision Secretive ahead of time.
The goal of this PR is to make Secretive scriptable enough to support managed rollout of SSH signing keys, especially in environments using SSH certificates. With these commands, an automation can:
That makes it possible to automate the parts that currently require opening the app and clicking through setup, while keeping the existing GUI workflow intact.
What Changed
This PR adds CLI support for:
ssh,zsh,bash, andfish--idor--name--idor--nameHelp Output
Testing
xcodebuild -project Sources/Secretive.xcodeproj -scheme Secretive -configuration Debug CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO buildxcodebuild -project Sources/Secretive.xcodeproj -scheme PackageTests test CODE_SIGNING_ALLOWED=NOcreate-secretlist-secretspublic-key-pathexport-public-keyinstall-agentuninstall-agentagent-statussocket-pathprint-integrationvariantsRelated Issues
Command-line interface)Make it possible to get a public key from the name chosen in Secretive via shell/CLI)Support for 1-to-Many relationship between Key and Certificates)