Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

cmd: make 'ollama login' and 'ollama logout' aliases for 'ollama signin' and 'ollama signout' respectively (#14144)

Jeffrey Morgan9ec733e52793
diff --git a/cmd/cmd.go b/cmd/cmd.go
index e88315be0..c4bb47604 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -2122,6 +2122,15 @@ func NewCLI() *cobra.Command {
RunE: SigninHandler,
}
+ loginCmd := &cobra.Command{
+ Use: "login",
+ Short: "Sign in to ollama.com",
+ Hidden: true,
+ Args: cobra.ExactArgs(0),
+ PreRunE: checkServerHeartbeat,
+ RunE: SigninHandler,
+ }
+
signoutCmd := &cobra.Command{
Use: "signout",
Short: "Sign out from ollama.com",
@@ -2130,6 +2139,15 @@ func NewCLI() *cobra.Command {
RunE: SignoutHandler,
}
+ logoutCmd := &cobra.Command{
+ Use: "logout",
+ Short: "Sign out from ollama.com",
+ Hidden: true,
+ Args: cobra.ExactArgs(0),
+ PreRunE: checkServerHeartbeat,
+ RunE: SignoutHandler,
+ }
+
listCmd := &cobra.Command{
Use: "list",
Aliases: []string{"ls"},
@@ -2226,7 +2244,9 @@ func NewCLI() *cobra.Command {
pullCmd,
pushCmd,
signinCmd,
+ loginCmd,
signoutCmd,
+ logoutCmd,
listCmd,
psCmd,
copyCmd,