From afebe612ff214578eedc8e10cd8fc6d03bd63bfa Mon Sep 17 00:00:00 2001 From: Alibek Tokayev Date: Mon, 16 Nov 2026 13:32:36 -0500 Subject: [PATCH 1/2] [CLI] Rebrand user-facing text to CCluster Update the --version banner (green CCluster ASCII art, new docs and GitHub support links) and the login/auth messages and README title. Co-Authored-By: Claude Sonnet 5.5 --- README.md | 2 +- centml/cli/login.py | 8 ++++---- centml/cli/main.py | 36 ++++++++++++++++++++++-------------- centml/sdk/auth.py | 2 +- 4 files changed, 28 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 68aeb8e5..2b22be43 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# centml-python-client +# CCluster Python Client ![](https://github.com/CentML/centml-python-client/actions/workflows/unit_tests.yml/badge.svg) ### Installation diff --git a/centml/cli/login.py b/centml/cli/login.py index 49a59559..9c9c059e 100644 --- a/centml/cli/login.py +++ b/centml/cli/login.py @@ -53,7 +53,7 @@ def do_GET(self): self.wfile.write(""" -

Succesfully logged into CentML CLI

+

Successfully logged into CCluster CLI

You can now close this tab and continue in the CLI.

@@ -84,7 +84,7 @@ def exchange_code_for_token(code, code_verifier): return response.json() -@click.command(help="Login to CentML") +@click.command(help="Login to CCluster") @click.argument("token_file", required=False) def login(token_file): if token_file: @@ -95,7 +95,7 @@ def login(token_file): click.echo("Authenticating with stored credentials...\n") click.echo("✅ Login successful") else: - click.echo("Logging into CentML...") + click.echo("Logging into CCluster...") choice = click.confirm("Do you want to log in with your browser now?", default=True) if choice: @@ -128,7 +128,7 @@ def login(token_file): click.echo("Login unsuccessful") -@click.command(help="Logout from CentML") +@click.command(help="Logout from CCluster") def logout(): auth.remove_centml_cred() click.echo("Logout successful") diff --git a/centml/cli/main.py b/centml/cli/main.py index dbf1000b..5a958a1e 100644 --- a/centml/cli/main.py +++ b/centml/cli/main.py @@ -5,24 +5,32 @@ from centml.cli.shell import shell, exec_cmd -@click.group() -# this is the version and prog name set in setup.py -@click.version_option( - prog_name="CentML CLI", - message=""" - ______ __ __ ___ __ - / ____/___ ____ / /_ / |/ // / - / / / _ \\ / __ \\ / __// /|_/ // / - / /___ / __// / / // /_ / / / // /___ - \\____/ \\___//_/ /_/ \\__//_/ /_//_____/ - +# NVIDIA green (#76B900) +_NVIDIA_GREEN = (118, 185, 0) + +_BANNER = r""" + ______________ __ + / ____/ ____/ /_ _______/ /____ _____ + / / / / / / / / / ___/ __/ _ \/ ___/ +/ /___/ /___/ / /_/ (__ ) /_/ __/ / +\____/\____/_/\__,_/____/\__/\___/_/ +""" + +_VERSION_MESSAGE = ( + click.style(_BANNER, fg=_NVIDIA_GREEN) + + """ 🚀 Welcome to %(prog)s v%(version)s 🚀 ✨ AI Deployment Made Simple ✨ -📚 Documentation: https://docs.centml.ai/ -🛠 Need help? Reach out to support@centml.ai -""", +📚 Documentation: https://docs.nvidia.com/ccluster +💬 Need help? Reach out on GitHub: https://github.com/NVIDIA/ccluster +""" ) + + +@click.group() +# this is the version and prog name set in setup.py +@click.version_option(prog_name="CCluster CLI", message=_VERSION_MESSAGE) def cli(): pass diff --git a/centml/sdk/auth.py b/centml/sdk/auth.py index cbdc2406..d70e2663 100644 --- a/centml/sdk/auth.py +++ b/centml/sdk/auth.py @@ -71,7 +71,7 @@ def get_centml_token(): # Fall back to stored credentials for interactive flows cred = load_centml_cred() if not cred: - sys.exit("CentML credentials not found. Please login...") + sys.exit("CCluster credentials not found. Please login...") exp_time = int(jwt.decode(cred["access_token"], options={"verify_signature": False})["exp"]) if time.time() >= exp_time - 100: From 071b65750f2d457a2b50242c883389a41611dd48 Mon Sep 17 00:00:00 2001 From: Alibek Tokayev Date: Mon, 16 Nov 2026 13:42:46 -0500 Subject: [PATCH 2/2] Apply black formatting to CLI version message Co-Authored-By: Claude Sonnet 5.5 --- centml/cli/main.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/centml/cli/main.py b/centml/cli/main.py index 5a958a1e..504ea4fe 100644 --- a/centml/cli/main.py +++ b/centml/cli/main.py @@ -4,7 +4,6 @@ from centml.cli.cluster import ls, get, delete, pause, resume, capacity from centml.cli.shell import shell, exec_cmd - # NVIDIA green (#76B900) _NVIDIA_GREEN = (118, 185, 0) @@ -16,16 +15,13 @@ \____/\____/_/\__,_/____/\__/\___/_/ """ -_VERSION_MESSAGE = ( - click.style(_BANNER, fg=_NVIDIA_GREEN) - + """ +_VERSION_MESSAGE = click.style(_BANNER, fg=_NVIDIA_GREEN) + """ 🚀 Welcome to %(prog)s v%(version)s 🚀 ✨ AI Deployment Made Simple ✨ 📚 Documentation: https://docs.nvidia.com/ccluster 💬 Need help? Reach out on GitHub: https://github.com/NVIDIA/ccluster """ -) @click.group()