diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 6c4c0d89..d4c0d72b 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -102,6 +102,13 @@ func Execute(ver, commit, buildDate string) error { // We don't want to show the default value rootCmd.PersistentFlags().Lookup("api-token").DefValue = "" + loginCmd := auth.LoginCmd(cfg) + loginCmd.Hidden = true + logoutCmd := auth.LogoutCmd(cfg) + logoutCmd.Hidden = true + + rootCmd.AddCommand(loginCmd) + rootCmd.AddCommand(logoutCmd) rootCmd.AddCommand(auth.AuthCmd(cfg)) rootCmd.AddCommand(backup.BackupCmd(cfg)) rootCmd.AddCommand(branch.BranchCmd(cfg))