# JIVAS Command Line Interface (JVCLI)





`jvcli` is a powerful command-line interface tool designed to streamline interactions with the Jivas Package Repository ([https://jpr.trueselph.com/](https://jpr.trueselph.com/)). It simplifies package management, user authentication, and namespace operations, ensuring seamless software development and deployment. It allows you to create, publish, update, download, and get information about various resources such as actions and agents.
## Installation
To install `jvcli`, use `pip`:
```sh
pip install jvcli
```
## Usage
To use `jvcli`, you need to log in first:
```sh
jvcli login
```
After logging in, you can use any of the available commands. For example, to create a new action:
```sh
jvcli create action --name my_action --version 0.0.1 --description "My first action"
```
## Command Reference
This section provides a comprehensive guide to all available JVCLI commands, their options, and examples of their usage.
### Authentication Commands
Authentication commands help you create and manage your Jivas Package Repository account.
#### `jvcli signup`
Create a new account on the Jivas Package Repository. This command will prompt you for your username, email, and password if not provided as options.
```sh
# Interactive signup with prompts
jvcli signup
# Providing all parameters directly
jvcli signup --username myusername --email user@example.com --password mypassword
```
Options:
- `--username`: Your desired username for the JPR account
- `--email`: Your email address
- `--password`: Your password (will be hidden during input)
After successful signup, your authentication token will be automatically saved to your local configuration.
#### `jvcli login`
Log in to your existing Jivas Package Repository account. This command authenticates you and saves the authentication token locally for future commands.
```sh
# Interactive login with prompts
jvcli login
# Providing credentials directly
jvcli login --username user@example.com --password mypassword
```
Options:
- `--username`: Your email address or username
- `--password`: Your password (will be hidden during input)
Upon successful login, your token will be saved locally and you'll see a confirmation message.
#### `jvcli logout`
Log out from the Jivas Package Repository by removing your local authentication token.
```sh
jvcli logout
```
This command doesn't require any options and will clear all local authentication data.
### Project Management Commands
These commands help you manage your Jivas projects, from initial setup to maintenance.
#### `jvcli startproject`
Create a new Jivas project with all necessary scaffolding and folder structure. This command sets up a complete project template with all required files.
```sh
# Create a new project with default settings
jvcli startproject my_project
# Create a project with a specific Jivas version
jvcli startproject my_project --version 2.0.0
# Create a project without generating an environment file
jvcli startproject my_project --no-env
```
Options:
- `--version`: Specify the Jivas project version to use for scaffolding (default: latest supported version)
- `--no-env`: Skip generating the .env file with default configurations
This command creates a directory structure with:
- Actions directory for custom actions
- DAF directory for agent packages
- Main JAC file for your JIVAS application
- Configuration files and shell scripts for easy management
### Create Commands
Create commands help you generate new resources like actions, agents, and namespaces with the proper structure and configuration.
#### `jvcli create action`
Create a new action with its folder structure, configuration files, and code templates. Actions are modular components that can be used by agents to perform specific tasks.
```sh
# Create a basic action with interactive prompts
jvcli create action
# Create an action with a specific name
jvcli create action --name custom_action
# Create a fully customized action
jvcli create action \
--name custom_action \
--version 1.0.0 \
--description "A custom action for processing data" \
--type interact_action \
--jivas_version 2.0.0 \
--singleton true \
--path ./my_actions \
--namespace my-namespace
```
Options:
- `--name`: Name of the action (must be snake_case) - will be prompted if not provided
- `--version`: Version of the action (default: 0.0.1)
- `--jivas_version`: Version of Jivas to target (default: latest supported)
- `--description`: Detailed description of the action's purpose
- `--type`: Type of action - can be one of:
- `action`: Standard action (default)
- `interact_action`: Action that can interact with users
- `vector_store_action`: Action for vector database operations
- `--singleton`: Whether the action should be singleton (default: true)
- `--path`: Directory to create the action folder in (default: ./actions)
- `--namespace`: Namespace for the action (defaults to your username from token)
The command creates:
- Action directory structure
- info.yaml configuration file
- JAC files with code templates
- Streamlit app files for the action's UI
- README and CHANGELOG files
#### `jvcli create agent`
Create a new agent (DAF package) with all necessary configuration files. Agents are the main building blocks of JIVAS applications.
```sh
# Create a basic agent with interactive prompts
jvcli create agent
# Create an agent with a specific name
jvcli create agent --name custom_agent
# Create a fully customized agent
jvcli create agent \
--name custom_agent \
--version 1.0.0 \
--description "A custom JIVAS agent for customer support" \
--jivas_version 2.0.0 \
--path ./my_agents \
--namespace my-namespace
```
Options:
- `--name`: Name of the agent (must be snake_case) - will be prompted if not provided
- `--version`: Version of the agent (default: 0.0.1)
- `--jivas_version`: Version of Jivas to target (default: latest supported)
- `--description`: Detailed description of the agent's purpose (default: "A jivas agent autocreated by the jvcli")
- `--path`: Directory to create the agent in (default: ./daf)
- `--namespace`: Namespace for the agent (defaults to your username from token)
The command creates:
- Agent directory structure
- info.yaml package configuration
- descriptor.yaml defining agent behavior
- knowledge.yaml for agent knowledge base
- memory.yaml for agent memory storage
- README and CHANGELOG files
#### `jvcli create namespace`
Create a new namespace through the API to organize your packages. Namespaces help you group related packages and manage permissions.
```sh
# Create a namespace with interactive prompt
jvcli create namespace
# Create a namespace with a specific name
jvcli create namespace --name my-namespace
```
Options:
- `--name`: Name of the namespace (must be lowercase with only letters, numbers, and hyphens)
This command requires you to be authenticated with the JPR. After creating the namespace, it will be added to your account's permissions.
### Publish Commands
Publish commands allow you to package and publish your actions and agents to the Jivas Package Repository.
#### `jvcli publish action`
Package and publish an action to the Jivas Package Repository. This makes your action available for others to download and use.
```sh
# Publish an action
jvcli publish action --path ./actions/my_action
# Publish with specific visibility
jvcli publish action --path ./actions/my_action --visibility private
# Generate package without publishing
jvcli publish action --path ./actions/my_action --package-only --output ./packages
# Publish a pre-packaged tarball with explicit namespace
jvcli publish action --path ./packages/my_action.tar.gz --namespace my-namespace
```
Options:
- `--path`: Path to the directory containing the action to publish (or path to a tarball)
- `--visibility`: Visibility of the published action (`public` or `private`, default: `public`)
- `--package-only`: Only generate the package without publishing to JPR
- `--output`, `-o`: Output path for the generated package (used with `--package-only`)
- `--namespace`: Namespace of the package (required when `--path` is a tarball)
The command will validate your action's structure, create a tarball package, and upload it to the JPR unless `--package-only` is specified.
#### `jvcli publish agent`
Package and publish an agent (DAF) to the Jivas Package Repository. This makes your agent available for others to download and use.
```sh
# Publish an agent
jvcli publish agent --path ./daf/my_agent
# Publish with specific visibility
jvcli publish agent --path ./daf/my_agent --visibility private
# Generate package without publishing
jvcli publish agent --path ./daf/my_agent --package-only --output ./packages
# Publish a pre-packaged tarball with explicit namespace
jvcli publish agent --path ./packages/my_agent.tar.gz --namespace my-namespace
```
Options:
- `--path`: Path to the directory containing the agent to publish (or path to a tarball)
- `--visibility`: Visibility of the published agent (`public` or `private`, default: `public`)
- `--package-only`: Only generate the package without publishing to JPR
- `--output`, `-o`: Output path for the generated package (used with `--package-only`)
- `--namespace`: Namespace of the package (required when `--path` is a tarball)
The command will validate your agent's structure, create a tarball package, and upload it to the JPR unless `--package-only` is specified.
### Download Commands
Download commands let you retrieve actions and agents from the Jivas Package Repository.
#### `jvcli download action`
Download a JIVAS action package from the repository to your local environment.
```sh
# Download the latest version of an action
jvcli download action my_namespace/custom_action
# Download a specific version
jvcli download action my_namespace/custom_action 1.0.0
# Download to a custom directory
jvcli download action my_namespace/custom_action --path ./my_custom_actions
# Download a specific version to a custom directory
jvcli download action my_namespace/custom_action 1.0.0 --path ./my_custom_actions
```
Arguments:
- `name`: Name of the action to download (including namespace)
- `version`: Version of the action (optional, default: latest)
Options:
- `--path`: Directory to download the action to (optional, default: ./actions)
The downloaded action will be extracted to a directory named after the action in the specified path.
#### `jvcli download agent`
Download a JIVAS agent package (DAF) from the repository to your local environment.
```sh
# Download the latest version of an agent
jvcli download agent my_namespace/custom_agent
# Download a specific version
jvcli download agent my_namespace/custom_agent 1.0.0
# Download to a custom directory
jvcli download agent my_namespace/custom_agent --path ./my_custom_agents
# Download a specific version to a custom directory
jvcli download agent my_namespace/custom_agent 1.0.0 --path ./my_custom_agents
```
Arguments:
- `name`: Name of the agent to download (including namespace)
- `version`: Version of the agent (optional, default: latest)
Options:
- `--path`: Directory to download the agent to (optional, default: ./daf)
The downloaded agent will be extracted to a directory named after the agent in the specified path.
### Info Commands
Info commands provide detailed information about packages in the Jivas Package Repository.
#### `jvcli info action`
Get detailed information about an action package in the repository. This includes metadata, dependencies, and configuration details.
```sh
# Get info for the latest version of an action
jvcli info action my_namespace/custom_action
# Get info for a specific version
jvcli info action my_namespace/custom_action 1.0.0
```
Arguments:
- `name`: Name of the action (including namespace)
- `version`: Version of the action (optional, default: latest)
The output displays the complete package information in YAML format, including:
- Package metadata (name, version, author)
- Description and title
- Dependencies and compatibility information
- Configuration details
#### `jvcli info agent`
Get detailed information about an agent package in the repository. This includes metadata, dependencies, and configuration details.
```sh
# Get info for the latest version of an agent
jvcli info agent my_namespace/custom_agent
# Get info for a specific version
jvcli info agent my_namespace/custom_agent 1.0.0
```
Arguments:
- `name`: Name of the agent (including namespace)
- `version`: Version of the agent (optional, default: latest)
The output displays the complete package information in YAML format, including:
- Package metadata (name, version, author)
- Description and title
- Dependencies and compatibility information
- Configuration details
### Update Commands
Update commands allow you to modify existing resources like namespaces.
#### `jvcli update namespace`
Perform update operations on a specified namespace, such as inviting users or transferring ownership.
```sh
# Invite a user to a namespace
jvcli update namespace my-namespace --invite user@example.com
# Transfer ownership of a namespace
jvcli update namespace my-namespace --transfer newowner@example.com
```
Arguments:
- `namespace`: Name of the namespace to update
Options:
- `--invite`: Email address of a user to invite to the namespace
- `--transfer`: Email address of a user to transfer namespace ownership to
Note: The `--invite` and `--transfer` options are mutually exclusive - you can only use one at a time.
### Server Commands
Server commands help you manage the Jivas Server, including launching, authentication, and agent management.
#### `jvcli server launch`
Launch the Jivas Server by running a specified JAC file. This starts the server for local development and testing.
```sh
# Launch the server with the default main.jac file
jvcli server launch
# Launch the server with a custom JAC file
jvcli server launch --jac-file custom.jac
```
Options:
- `--jac-file`: Path to the JAC file to run (default: main.jac in the current directory)
This command starts the Jivas Server, which will listen for connections on the default port (usually 8000).
#### `jvcli server login`
Log in to a running Jivas Server and get an authentication token. This token can be used for subsequent API calls.
```sh
# Interactive login with prompts
jvcli server login
# Providing credentials directly
jvcli server login --email admin@example.com --password mypassword
```
Options:
- `--email`: Email address for Jivas login (defaults to JIVAS_USER env var if set)
- `--password`: Password for Jivas login (defaults to JIVAS_PASSWORD env var if set)
Upon successful login, the token will be printed and stored in the JIVAS_TOKEN environment variable.
#### `jvcli server createadmin`
Create a system administrator account on a running Jivas Server. This is useful for initial setup.
```sh
# Interactive createadmin with prompts
jvcli server createadmin
# Providing credentials directly
jvcli server createadmin --email admin@example.com --password mypassword
```
Options:
- `--email`: Email address for the system admin (defaults to JIVAS_USER env var if set)
- `--password`: Password for the system admin (defaults to JIVAS_PASSWORD env var if set)
This command behaves differently based on your database configuration:
- With MongoDB configured: Uses the `jac create_system_admin` command
- Without MongoDB: Uses the server's API signup endpoint
#### `jvcli server initagents`
Initialize agents in the Jivas system. This command reloads all agents and their actions, useful after making changes.
```sh
jvcli server initagents
```
This command:
1. Checks if the server is running
2. Logs in to the server
3. Sends a request to the server to reinitialize all agents
#### `jvcli server importagent`
Import an agent from a DAF package into a running Jivas server. This allows you to add new agents to your system.
```sh
# Import the latest version of an agent
jvcli server importagent my_namespace/custom_agent
# Import a specific version
jvcli server importagent my_namespace/custom_agent 1.0.0
```
Arguments:
- `agent_name`: Name of the agent to import (including namespace)
- `version`: Version of the agent (optional, default: latest)
This command:
1. Checks if the server is running
2. Logs in to the server
3. Sends a request to import the specified agent
4. Displays the agent ID upon successful import
### Client Commands
Client commands help you manage the Jivas Client, which provides a user interface for interacting with agents.
#### `jvcli client launch`
Launch the Jivas Client, which provides a web interface for configuring and chatting with agents.
```sh
# Launch with default settings
jvcli client launch
# Launch on a custom port
jvcli client launch --port 9001
# Launch with custom server URLs
jvcli client launch \
--jivas_url http://my-server:8000
Options:
- `--port`: Port for the client to launch on (default: 8501)
- `--jivas_url`: URL for the Jivas API (default: http://localhost:8000 or JIVAS_BASE_URL env var)
- `--studio_url`: URL for the Jivas Studio (default: http://localhost:8989 or JIVAS_STUDIO_URL env var)
When launched, the Client will be accessible via a web browser at `http://localhost:<port>`.
## 🔰 Contributing
- **🐛 [Report Issues](https://github.com/TrueSelph/jvcli/issues)**: Submit bugs found or log feature requests for the `jvcli` project.
- **💡 [Submit Pull Requests](https://github.com/TrueSelph/jvcli/blob/main/CONTRIBUTING.md)**: Review open PRs, and submit your own PRs.
<details closed>
<summary>Contributing Guidelines</summary>
1. **Fork the Repository**: Start by forking the project repository to your github account.
2. **Clone Locally**: Clone the forked repository to your local machine using a git client.
```sh
git clone https://github.com/TrueSelph/jvcli
```
3. **Create a New Branch**: Always work on a new branch, giving it a descriptive name.
```sh
git checkout -b new-feature-x
```
4. **Make Your Changes**: Develop and test your changes locally.
5. **Commit Your Changes**: Commit with a clear message describing your updates.
```sh
git commit -m 'Implemented new feature x.'
```
6. **Push to github**: Push the changes to your forked repository.
```sh
git push origin new-feature-x
```
7. **Submit a Pull Request**: Create a PR against the original project repository. Clearly describe the changes and their motivations.
8. **Review**: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
</details>
<details open>
<summary>Contributor Graph</summary>
<br>
<p align="left">
<a href="https://github.com/TrueSelph/jvcli/graphs/contributors">
<img src="https://contrib.rocks/image?repo=TrueSelph/jvcli" />
</a>
</p>
</details>
## 🎗 License
This project is protected under the Apache License 2.0. See [LICENSE](./LICENSE) for more information.
Raw data
{
"_id": null,
"home_page": "https://github.com/TrueSelph/jvcli",
"name": "jvcli",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": null,
"author": "TrueSelph Inc.",
"author_email": "admin@trueselph.com",
"download_url": "https://files.pythonhosted.org/packages/5a/31/bc28a491ffb4033a6600bca9f1f48dcf1e10d8b4fe4fe5178984bf0aeb1c/jvcli-2.1.18.tar.gz",
"platform": null,
"description": "# JIVAS Command Line Interface (JVCLI)\n\n\n\n\n\n\n\n`jvcli` is a powerful command-line interface tool designed to streamline interactions with the Jivas Package Repository ([https://jpr.trueselph.com/](https://jpr.trueselph.com/)). It simplifies package management, user authentication, and namespace operations, ensuring seamless software development and deployment. It allows you to create, publish, update, download, and get information about various resources such as actions and agents.\n\n## Installation\n\nTo install `jvcli`, use `pip`:\n\n```sh\npip install jvcli\n```\n\n## Usage\n\nTo use `jvcli`, you need to log in first:\n\n```sh\njvcli login\n```\n\nAfter logging in, you can use any of the available commands. For example, to create a new action:\n\n```sh\njvcli create action --name my_action --version 0.0.1 --description \"My first action\"\n```\n\n## Command Reference\n\nThis section provides a comprehensive guide to all available JVCLI commands, their options, and examples of their usage.\n\n### Authentication Commands\n\nAuthentication commands help you create and manage your Jivas Package Repository account.\n\n#### `jvcli signup`\n\nCreate a new account on the Jivas Package Repository. This command will prompt you for your username, email, and password if not provided as options.\n\n```sh\n# Interactive signup with prompts\njvcli signup\n\n# Providing all parameters directly\njvcli signup --username myusername --email user@example.com --password mypassword\n```\n\nOptions:\n- `--username`: Your desired username for the JPR account\n- `--email`: Your email address\n- `--password`: Your password (will be hidden during input)\n\nAfter successful signup, your authentication token will be automatically saved to your local configuration.\n\n#### `jvcli login`\n\nLog in to your existing Jivas Package Repository account. This command authenticates you and saves the authentication token locally for future commands.\n\n```sh\n# Interactive login with prompts\njvcli login\n\n# Providing credentials directly\njvcli login --username user@example.com --password mypassword\n```\n\nOptions:\n- `--username`: Your email address or username\n- `--password`: Your password (will be hidden during input)\n\nUpon successful login, your token will be saved locally and you'll see a confirmation message.\n\n#### `jvcli logout`\n\nLog out from the Jivas Package Repository by removing your local authentication token.\n\n```sh\njvcli logout\n```\n\nThis command doesn't require any options and will clear all local authentication data.\n\n### Project Management Commands\n\nThese commands help you manage your Jivas projects, from initial setup to maintenance.\n\n#### `jvcli startproject`\n\nCreate a new Jivas project with all necessary scaffolding and folder structure. This command sets up a complete project template with all required files.\n\n```sh\n# Create a new project with default settings\njvcli startproject my_project\n\n# Create a project with a specific Jivas version\njvcli startproject my_project --version 2.0.0\n\n# Create a project without generating an environment file\njvcli startproject my_project --no-env\n```\n\nOptions:\n- `--version`: Specify the Jivas project version to use for scaffolding (default: latest supported version)\n- `--no-env`: Skip generating the .env file with default configurations\n\nThis command creates a directory structure with:\n- Actions directory for custom actions\n- DAF directory for agent packages\n- Main JAC file for your JIVAS application\n- Configuration files and shell scripts for easy management\n\n### Create Commands\n\nCreate commands help you generate new resources like actions, agents, and namespaces with the proper structure and configuration.\n\n#### `jvcli create action`\n\nCreate a new action with its folder structure, configuration files, and code templates. Actions are modular components that can be used by agents to perform specific tasks.\n\n```sh\n# Create a basic action with interactive prompts\njvcli create action\n\n# Create an action with a specific name\njvcli create action --name custom_action\n\n# Create a fully customized action\njvcli create action \\\n --name custom_action \\\n --version 1.0.0 \\\n --description \"A custom action for processing data\" \\\n --type interact_action \\\n --jivas_version 2.0.0 \\\n --singleton true \\\n --path ./my_actions \\\n --namespace my-namespace\n```\n\nOptions:\n- `--name`: Name of the action (must be snake_case) - will be prompted if not provided\n- `--version`: Version of the action (default: 0.0.1)\n- `--jivas_version`: Version of Jivas to target (default: latest supported)\n- `--description`: Detailed description of the action's purpose\n- `--type`: Type of action - can be one of:\n - `action`: Standard action (default)\n - `interact_action`: Action that can interact with users\n - `vector_store_action`: Action for vector database operations\n- `--singleton`: Whether the action should be singleton (default: true)\n- `--path`: Directory to create the action folder in (default: ./actions)\n- `--namespace`: Namespace for the action (defaults to your username from token)\n\nThe command creates:\n- Action directory structure\n- info.yaml configuration file\n- JAC files with code templates\n- Streamlit app files for the action's UI\n- README and CHANGELOG files\n\n#### `jvcli create agent`\n\nCreate a new agent (DAF package) with all necessary configuration files. Agents are the main building blocks of JIVAS applications.\n\n```sh\n# Create a basic agent with interactive prompts\njvcli create agent\n\n# Create an agent with a specific name\njvcli create agent --name custom_agent\n\n# Create a fully customized agent\njvcli create agent \\\n --name custom_agent \\\n --version 1.0.0 \\\n --description \"A custom JIVAS agent for customer support\" \\\n --jivas_version 2.0.0 \\\n --path ./my_agents \\\n --namespace my-namespace\n```\n\nOptions:\n- `--name`: Name of the agent (must be snake_case) - will be prompted if not provided\n- `--version`: Version of the agent (default: 0.0.1)\n- `--jivas_version`: Version of Jivas to target (default: latest supported)\n- `--description`: Detailed description of the agent's purpose (default: \"A jivas agent autocreated by the jvcli\")\n- `--path`: Directory to create the agent in (default: ./daf)\n- `--namespace`: Namespace for the agent (defaults to your username from token)\n\nThe command creates:\n- Agent directory structure\n- info.yaml package configuration\n- descriptor.yaml defining agent behavior\n- knowledge.yaml for agent knowledge base\n- memory.yaml for agent memory storage\n- README and CHANGELOG files\n\n#### `jvcli create namespace`\n\nCreate a new namespace through the API to organize your packages. Namespaces help you group related packages and manage permissions.\n\n```sh\n# Create a namespace with interactive prompt\njvcli create namespace\n\n# Create a namespace with a specific name\njvcli create namespace --name my-namespace\n```\n\nOptions:\n- `--name`: Name of the namespace (must be lowercase with only letters, numbers, and hyphens)\n\nThis command requires you to be authenticated with the JPR. After creating the namespace, it will be added to your account's permissions.\n\n### Publish Commands\n\nPublish commands allow you to package and publish your actions and agents to the Jivas Package Repository.\n\n#### `jvcli publish action`\n\nPackage and publish an action to the Jivas Package Repository. This makes your action available for others to download and use.\n\n```sh\n# Publish an action\njvcli publish action --path ./actions/my_action\n\n# Publish with specific visibility\njvcli publish action --path ./actions/my_action --visibility private\n\n# Generate package without publishing\njvcli publish action --path ./actions/my_action --package-only --output ./packages\n\n# Publish a pre-packaged tarball with explicit namespace\njvcli publish action --path ./packages/my_action.tar.gz --namespace my-namespace\n```\n\nOptions:\n- `--path`: Path to the directory containing the action to publish (or path to a tarball)\n- `--visibility`: Visibility of the published action (`public` or `private`, default: `public`)\n- `--package-only`: Only generate the package without publishing to JPR\n- `--output`, `-o`: Output path for the generated package (used with `--package-only`)\n- `--namespace`: Namespace of the package (required when `--path` is a tarball)\n\nThe command will validate your action's structure, create a tarball package, and upload it to the JPR unless `--package-only` is specified.\n\n#### `jvcli publish agent`\n\nPackage and publish an agent (DAF) to the Jivas Package Repository. This makes your agent available for others to download and use.\n\n```sh\n# Publish an agent\njvcli publish agent --path ./daf/my_agent\n\n# Publish with specific visibility\njvcli publish agent --path ./daf/my_agent --visibility private\n\n# Generate package without publishing\njvcli publish agent --path ./daf/my_agent --package-only --output ./packages\n\n# Publish a pre-packaged tarball with explicit namespace\njvcli publish agent --path ./packages/my_agent.tar.gz --namespace my-namespace\n```\n\nOptions:\n- `--path`: Path to the directory containing the agent to publish (or path to a tarball)\n- `--visibility`: Visibility of the published agent (`public` or `private`, default: `public`)\n- `--package-only`: Only generate the package without publishing to JPR\n- `--output`, `-o`: Output path for the generated package (used with `--package-only`)\n- `--namespace`: Namespace of the package (required when `--path` is a tarball)\n\nThe command will validate your agent's structure, create a tarball package, and upload it to the JPR unless `--package-only` is specified.\n\n### Download Commands\n\nDownload commands let you retrieve actions and agents from the Jivas Package Repository.\n\n#### `jvcli download action`\n\nDownload a JIVAS action package from the repository to your local environment.\n\n```sh\n# Download the latest version of an action\njvcli download action my_namespace/custom_action\n\n# Download a specific version\njvcli download action my_namespace/custom_action 1.0.0\n\n# Download to a custom directory\njvcli download action my_namespace/custom_action --path ./my_custom_actions\n\n# Download a specific version to a custom directory\njvcli download action my_namespace/custom_action 1.0.0 --path ./my_custom_actions\n```\n\nArguments:\n- `name`: Name of the action to download (including namespace)\n- `version`: Version of the action (optional, default: latest)\n\nOptions:\n- `--path`: Directory to download the action to (optional, default: ./actions)\n\nThe downloaded action will be extracted to a directory named after the action in the specified path.\n\n#### `jvcli download agent`\n\nDownload a JIVAS agent package (DAF) from the repository to your local environment.\n\n```sh\n# Download the latest version of an agent\njvcli download agent my_namespace/custom_agent\n\n# Download a specific version\njvcli download agent my_namespace/custom_agent 1.0.0\n\n# Download to a custom directory\njvcli download agent my_namespace/custom_agent --path ./my_custom_agents\n\n# Download a specific version to a custom directory\njvcli download agent my_namespace/custom_agent 1.0.0 --path ./my_custom_agents\n```\n\nArguments:\n- `name`: Name of the agent to download (including namespace)\n- `version`: Version of the agent (optional, default: latest)\n\nOptions:\n- `--path`: Directory to download the agent to (optional, default: ./daf)\n\nThe downloaded agent will be extracted to a directory named after the agent in the specified path.\n\n### Info Commands\n\nInfo commands provide detailed information about packages in the Jivas Package Repository.\n\n#### `jvcli info action`\n\nGet detailed information about an action package in the repository. This includes metadata, dependencies, and configuration details.\n\n```sh\n# Get info for the latest version of an action\njvcli info action my_namespace/custom_action\n\n# Get info for a specific version\njvcli info action my_namespace/custom_action 1.0.0\n```\n\nArguments:\n- `name`: Name of the action (including namespace)\n- `version`: Version of the action (optional, default: latest)\n\nThe output displays the complete package information in YAML format, including:\n- Package metadata (name, version, author)\n- Description and title\n- Dependencies and compatibility information\n- Configuration details\n\n#### `jvcli info agent`\n\nGet detailed information about an agent package in the repository. This includes metadata, dependencies, and configuration details.\n\n```sh\n# Get info for the latest version of an agent\njvcli info agent my_namespace/custom_agent\n\n# Get info for a specific version\njvcli info agent my_namespace/custom_agent 1.0.0\n```\n\nArguments:\n- `name`: Name of the agent (including namespace)\n- `version`: Version of the agent (optional, default: latest)\n\nThe output displays the complete package information in YAML format, including:\n- Package metadata (name, version, author)\n- Description and title\n- Dependencies and compatibility information\n- Configuration details\n\n### Update Commands\n\nUpdate commands allow you to modify existing resources like namespaces.\n\n#### `jvcli update namespace`\n\nPerform update operations on a specified namespace, such as inviting users or transferring ownership.\n\n```sh\n# Invite a user to a namespace\njvcli update namespace my-namespace --invite user@example.com\n\n# Transfer ownership of a namespace\njvcli update namespace my-namespace --transfer newowner@example.com\n```\n\nArguments:\n- `namespace`: Name of the namespace to update\n\nOptions:\n- `--invite`: Email address of a user to invite to the namespace\n- `--transfer`: Email address of a user to transfer namespace ownership to\n\nNote: The `--invite` and `--transfer` options are mutually exclusive - you can only use one at a time.\n\n### Server Commands\n\nServer commands help you manage the Jivas Server, including launching, authentication, and agent management.\n\n#### `jvcli server launch`\n\nLaunch the Jivas Server by running a specified JAC file. This starts the server for local development and testing.\n\n```sh\n# Launch the server with the default main.jac file\njvcli server launch\n\n# Launch the server with a custom JAC file\njvcli server launch --jac-file custom.jac\n```\n\nOptions:\n- `--jac-file`: Path to the JAC file to run (default: main.jac in the current directory)\n\nThis command starts the Jivas Server, which will listen for connections on the default port (usually 8000).\n\n#### `jvcli server login`\n\nLog in to a running Jivas Server and get an authentication token. This token can be used for subsequent API calls.\n\n```sh\n# Interactive login with prompts\njvcli server login\n\n# Providing credentials directly\njvcli server login --email admin@example.com --password mypassword\n```\n\nOptions:\n- `--email`: Email address for Jivas login (defaults to JIVAS_USER env var if set)\n- `--password`: Password for Jivas login (defaults to JIVAS_PASSWORD env var if set)\n\nUpon successful login, the token will be printed and stored in the JIVAS_TOKEN environment variable.\n\n#### `jvcli server createadmin`\n\nCreate a system administrator account on a running Jivas Server. This is useful for initial setup.\n\n```sh\n# Interactive createadmin with prompts\njvcli server createadmin\n\n# Providing credentials directly\njvcli server createadmin --email admin@example.com --password mypassword\n```\n\nOptions:\n- `--email`: Email address for the system admin (defaults to JIVAS_USER env var if set)\n- `--password`: Password for the system admin (defaults to JIVAS_PASSWORD env var if set)\n\nThis command behaves differently based on your database configuration:\n- With MongoDB configured: Uses the `jac create_system_admin` command\n- Without MongoDB: Uses the server's API signup endpoint\n\n#### `jvcli server initagents`\n\nInitialize agents in the Jivas system. This command reloads all agents and their actions, useful after making changes.\n\n```sh\njvcli server initagents\n```\n\nThis command:\n1. Checks if the server is running\n2. Logs in to the server\n3. Sends a request to the server to reinitialize all agents\n\n#### `jvcli server importagent`\n\nImport an agent from a DAF package into a running Jivas server. This allows you to add new agents to your system.\n\n```sh\n# Import the latest version of an agent\njvcli server importagent my_namespace/custom_agent\n\n# Import a specific version\njvcli server importagent my_namespace/custom_agent 1.0.0\n```\n\nArguments:\n- `agent_name`: Name of the agent to import (including namespace)\n- `version`: Version of the agent (optional, default: latest)\n\nThis command:\n1. Checks if the server is running\n2. Logs in to the server\n3. Sends a request to import the specified agent\n4. Displays the agent ID upon successful import\n\n### Client Commands\n\nClient commands help you manage the Jivas Client, which provides a user interface for interacting with agents.\n\n#### `jvcli client launch`\n\nLaunch the Jivas Client, which provides a web interface for configuring and chatting with agents.\n\n```sh\n# Launch with default settings\njvcli client launch\n\n# Launch on a custom port\njvcli client launch --port 9001\n\n# Launch with custom server URLs\njvcli client launch \\\n --jivas_url http://my-server:8000\n\nOptions:\n- `--port`: Port for the client to launch on (default: 8501)\n- `--jivas_url`: URL for the Jivas API (default: http://localhost:8000 or JIVAS_BASE_URL env var)\n- `--studio_url`: URL for the Jivas Studio (default: http://localhost:8989 or JIVAS_STUDIO_URL env var)\n\n\nWhen launched, the Client will be accessible via a web browser at `http://localhost:<port>`.\n\n## \ud83d\udd30 Contributing\n\n- **\ud83d\udc1b [Report Issues](https://github.com/TrueSelph/jvcli/issues)**: Submit bugs found or log feature requests for the `jvcli` project.\n- **\ud83d\udca1 [Submit Pull Requests](https://github.com/TrueSelph/jvcli/blob/main/CONTRIBUTING.md)**: Review open PRs, and submit your own PRs.\n\n<details closed>\n<summary>Contributing Guidelines</summary>\n\n1. **Fork the Repository**: Start by forking the project repository to your github account.\n2. **Clone Locally**: Clone the forked repository to your local machine using a git client.\n ```sh\n git clone https://github.com/TrueSelph/jvcli\n ```\n3. **Create a New Branch**: Always work on a new branch, giving it a descriptive name.\n ```sh\n git checkout -b new-feature-x\n ```\n4. **Make Your Changes**: Develop and test your changes locally.\n5. **Commit Your Changes**: Commit with a clear message describing your updates.\n ```sh\n git commit -m 'Implemented new feature x.'\n ```\n6. **Push to github**: Push the changes to your forked repository.\n ```sh\n git push origin new-feature-x\n ```\n7. **Submit a Pull Request**: Create a PR against the original project repository. Clearly describe the changes and their motivations.\n8. **Review**: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!\n</details>\n\n<details open>\n<summary>Contributor Graph</summary>\n<br>\n<p align=\"left\">\n <a href=\"https://github.com/TrueSelph/jvcli/graphs/contributors\">\n <img src=\"https://contrib.rocks/image?repo=TrueSelph/jvcli\" />\n </a>\n</p>\n</details>\n\n## \ud83c\udf97 License\n\nThis project is protected under the Apache License 2.0. See [LICENSE](./LICENSE) for more information.\n",
"bugtrack_url": null,
"license": null,
"summary": "CLI tool for Jivas Package Repository",
"version": "2.1.18",
"project_urls": {
"Homepage": "https://github.com/TrueSelph/jvcli"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "891c4b244eb38316a32ca2b724ffa152c5c87bb542633f01fa6a14570a9e2f13",
"md5": "545523737abe68eb3dfe8735aa0c7b9e",
"sha256": "9c7d07ec83987bab785b84e5c513d48a5e37c664a09f87bdd2877a94a12b3744"
},
"downloads": -1,
"filename": "jvcli-2.1.18-py3-none-any.whl",
"has_sig": false,
"md5_digest": "545523737abe68eb3dfe8735aa0c7b9e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 44253,
"upload_time": "2025-09-04T00:52:07",
"upload_time_iso_8601": "2025-09-04T00:52:07.662558Z",
"url": "https://files.pythonhosted.org/packages/89/1c/4b244eb38316a32ca2b724ffa152c5c87bb542633f01fa6a14570a9e2f13/jvcli-2.1.18-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5a31bc28a491ffb4033a6600bca9f1f48dcf1e10d8b4fe4fe5178984bf0aeb1c",
"md5": "6b5ca3d4f45dad45c69627b207aedd12",
"sha256": "a61aed20858be51c6106fcb577c0b4b5988060194002857f82ec7cc98841e319"
},
"downloads": -1,
"filename": "jvcli-2.1.18.tar.gz",
"has_sig": false,
"md5_digest": "6b5ca3d4f45dad45c69627b207aedd12",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 58392,
"upload_time": "2025-09-04T00:52:08",
"upload_time_iso_8601": "2025-09-04T00:52:08.584976Z",
"url": "https://files.pythonhosted.org/packages/5a/31/bc28a491ffb4033a6600bca9f1f48dcf1e10d8b4fe4fe5178984bf0aeb1c/jvcli-2.1.18.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-04 00:52:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TrueSelph",
"github_project": "jvcli",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "jvcli"
}