Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ keywords:
- management
- integration
license: Apache-2.0
version: 26.01.27
date-released: "2026-01-27"
version: 26.01.28
date-released: "2026-01-28"
9 changes: 5 additions & 4 deletions commands/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from core.config import write_file, write_env_file, add_db_to_json
from core.docker import ensure_network, run_compose
from core.network import fetch_template
from templates.compose import AGENT_POSTGRES_SNIPPET, AGENT_MARIADB_SNIPPET
from templates.compose import AGENT_POSTGRES_SNIPPET, AGENT_MARIADB_SNIPPET, AGENT_MONGODB_AUTH_SNIPPET, \
AGENT_MONGODB_SNIPPET


def agent(
Expand Down Expand Up @@ -57,7 +58,7 @@ def agent(
console.print(Panel("[bold]Database Setup[/bold]", style="cyan"))

while Confirm.ask("Do you want to configure a database?", default=True):
mode = Prompt.ask("Configuration Mode", choices=["new", "existing"], default="news")
mode = Prompt.ask("Configuration Mode", choices=["new", "existing"], default="new")

if mode == "existing":
console.print("[info]External/Existing Database Configuration[/info]")
Expand Down Expand Up @@ -170,7 +171,7 @@ def agent(
env_vars[f"{var_prefix}_USER"] = db_user
env_vars[f"{var_prefix}_PASS"] = db_pass

snippet = AGENT_MARIADB_SNIPPET \
snippet = AGENT_MONGODB_AUTH_SNIPPET \
.replace("${SERVICE_NAME}", service_name) \
.replace("${PORT}", f"${{{var_prefix}_PORT}}") \
.replace("${VOL_NAME}", f"{service_name}-data") \
Expand Down Expand Up @@ -203,7 +204,7 @@ def agent(
env_vars[f"{var_prefix}_PORT"] = str(mongo_port)
env_vars[f"{var_prefix}_DB"] = db_name

snippet = AGENT_MARIADB_SNIPPET \
snippet = AGENT_MONGODB_SNIPPET \
.replace("${SERVICE_NAME}", service_name) \
.replace("${PORT}", f"${{{var_prefix}_PORT}}") \
.replace("${VOL_NAME}", f"{service_name}-data") \
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "portabase-cli"
version = "26.01.27"
version = "26.01.28"
description = "The official command line interface (CLI) for managing and deploying Portabase instances with ease."
readme = "README.md"
requires-python = ">=3.12"
Expand Down