To use this cli, we need to first Install Nodejs, then run the following command.
npm i -g namirasoft-nws-ollama-api-v1
Returns the application health status
ns-nws-ollama healthz get
Returns the value list of a given table and column
ns-nws-ollama value list {table} {column} {search} {field_id} {limit}
Returns the ollama category list
ns-nws-ollama ollamacategory list {filters} {page} {size} {sorts}
Returns a ollama category by id.
ns-nws-ollama ollamacategory get {id}
Creates a new ollama category for an entity
ns-nws-ollama ollamacategory create {entity_id}
--category_id (String)
Deletes a ollama category by an id.
ns-nws-ollama ollamacategory delete {entity_id} {id}
Returns the ollama field list
ns-nws-ollama ollamafield list {filters} {page} {size} {sorts}
Returns a ollama field by id.
ns-nws-ollama ollamafield get {id}
Creates a new ollama field for an entity
ns-nws-ollama ollamafield create {entity_id}
--field_id (String)
--value (Any)
Updates a ollama field by an id for an entity
ns-nws-ollama ollamafield update {entity_id} {id}
--field_id (String)
--value (Any)
Deletes a ollama field by an id.
ns-nws-ollama ollamafield delete {entity_id} {id}
Returns the ollama tag list
ns-nws-ollama ollamatag list {filters} {page} {size} {sorts}
Returns a ollama tag by id.
ns-nws-ollama ollamatag get {id}
Creates a new ollama tag for an entity
ns-nws-ollama ollamatag create {entity_id}
--name (String)
--value (String)
Updates a ollama tag by an id for an entity
ns-nws-ollama ollamatag update {entity_id} {id}
--name (String)
--value (String)
Deletes a ollama tag by an id.
ns-nws-ollama ollamatag delete {entity_id} {id}
Returns the ollama list
ns-nws-ollama ollama list {filters} {page} {size} {sorts}
Returns an ollama by an id
ns-nws-ollama ollama get {id}
Creates a new ollama
ns-nws-ollama ollama create
--workspace_id (String)
--region_id (String)
--log_group_id (String)
--name (String)
--model (Enum)
--usage (Enum)
--cpu (Integer)
--memory (Integer)
--enabled (Boolean)
--ollama_category (Array)
--ollama_field (Array)
--ollama_tag (Array)
Updates an ollama by an id
ns-nws-ollama ollama update {id}
--workspace_id (String)
--region_id (String)
--log_group_id (String)
--name (String)
--model (Enum)
--usage (Enum)
--cpu (Integer)
--memory (Integer)
--enabled (Boolean)
--ollama_category (Array)
--ollama_field (Array)
--ollama_tag (Array)
Sets the status of an ollama by an id
ns-nws-ollama ollama setstatus {id}
--status (Enum)
Deletes an ollama by an id
ns-nws-ollama ollama delete {id}
Returns a cost by an id
ns-nws-ollama cost get {id}
{  "name": "OllamaCategory",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "category_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "created_at": {      "type": "DateTime",      "required": true    },    "updated_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "EntityCategoryInput",  "type": "Object",  "required": true,  "fields": {    "category_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    }  }}
{  "name": "OllamaField",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "field_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "value": {      "type": "Any",      "required": false    },    "created_at": {      "type": "DateTime",      "required": true    },    "updated_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "EntityFieldInput",  "type": "Object",  "required": true,  "fields": {    "field_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "value": {      "type": "Any",      "required": false    }  }}
{  "name": "OllamaTag",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "name": {      "type": "String",      "required": true,      "max": 255    },    "value": {      "type": "String",      "required": false    },    "created_at": {      "type": "DateTime",      "required": true    },    "updated_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "EntityTagInput",  "type": "Object",  "required": true,  "fields": {    "name": {      "type": "String",      "required": true,      "max": 255    },    "value": {      "type": "String",      "required": false    }  }}
{  "name": "Ollama",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "workspace_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "region_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "log_group_id": {      "type": "String",      "required": false,      "min": 20,      "max": 20    },    "name": {      "type": "String",      "required": true,      "max": 255    },    "model": {      "name": "OllamaModel",      "type": "Enum",      "required": true,      "valids": [        "DeepSeekR1_1_5B",        "DeepSeekR1_7B",        "DeepSeekR1_8B",        "DeepSeekR1_14B",        "DeepSeekR1_32B",        "DeepSeekR1_70B",        "DeepSeekR1_671B"      ]    },    "usage": {      "name": "OllamaUsage",      "type": "Enum",      "required": true,      "valids": [        "Low",        "Medium",        "High"      ]    },    "cpu": {      "type": "Integer",      "required": true    },    "memory": {      "type": "Integer",      "required": true    },    "status": {      "name": "OllamaStatus",      "type": "Enum",      "required": true,      "valids": [        "GeneratingSourceCode",        "Pushing",        "Creating",        "Downloading",        "Error",        "Successful",        "Pending",        "Unknown"      ]    },    "enabled": {      "type": "Boolean",      "required": true    },    "created_at": {      "type": "DateTime",      "required": true    },    "updated_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "OllamaFull",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "workspace_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "region_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "log_group_id": {      "type": "String",      "required": false,      "min": 20,      "max": 20    },    "name": {      "type": "String",      "required": true,      "max": 255    },    "model": {      "name": "OllamaModel",      "type": "Enum",      "required": true,      "valids": [        "DeepSeekR1_1_5B",        "DeepSeekR1_7B",        "DeepSeekR1_8B",        "DeepSeekR1_14B",        "DeepSeekR1_32B",        "DeepSeekR1_70B",        "DeepSeekR1_671B"      ]    },    "usage": {      "name": "OllamaUsage",      "type": "Enum",      "required": true,      "valids": [        "Low",        "Medium",        "High"      ]    },    "cpu": {      "type": "Integer",      "required": true    },    "memory": {      "type": "Integer",      "required": true    },    "status": {      "name": "OllamaStatus",      "type": "Enum",      "required": true,      "valids": [        "GeneratingSourceCode",        "Pushing",        "Creating",        "Downloading",        "Error",        "Successful",        "Pending",        "Unknown"      ]    },    "enabled": {      "type": "Boolean",      "required": true    },    "created_at": {      "type": "DateTime",      "required": true    },    "updated_at": {      "type": "DateTime",      "required": true    },    "ollama_category": {      "type": "Array",      "required": true,      "items": [        {          "name": "EntityCategoryInput",          "type": "Object",          "required": false,          "fields": {            "category_id": {              "type": "String",              "required": true,              "min": 20,              "max": 20            }          }        }      ]    },    "ollama_field": {      "type": "Array",      "required": true,      "items": [        {          "name": "EntityFieldInput",          "type": "Object",          "required": false,          "fields": {            "field_id": {              "type": "String",              "required": true,              "min": 20,              "max": 20            },            "value": {              "type": "Any",              "required": false            }          }        }      ]    },    "ollama_tag": {      "type": "Array",      "required": true,      "items": [        {          "name": "EntityTagInput",          "type": "Object",          "required": false,          "fields": {            "name": {              "type": "String",              "required": true,              "max": 255            },            "value": {              "type": "String",              "required": false            }          }        }      ]    }  }}
{  "name": "OllamaInput",  "type": "Object",  "required": true,  "fields": {    "workspace_id": {      "type": "String",      "required": false,      "min": 20,      "max": 20    },    "region_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "log_group_id": {      "type": "String",      "required": false,      "min": 20,      "max": 20    },    "name": {      "type": "String",      "required": true,      "max": 255    },    "model": {      "name": "OllamaModel",      "type": "Enum",      "required": true,      "valids": [        "DeepSeekR1_1_5B",        "DeepSeekR1_7B",        "DeepSeekR1_8B",        "DeepSeekR1_14B",        "DeepSeekR1_32B",        "DeepSeekR1_70B",        "DeepSeekR1_671B"      ]    },    "usage": {      "name": "OllamaUsage",      "type": "Enum",      "required": true,      "valids": [        "Low",        "Medium",        "High"      ]    },    "cpu": {      "type": "Integer",      "required": true    },    "memory": {      "type": "Integer",      "required": true    },    "enabled": {      "type": "Boolean",      "required": true    },    "ollama_category": {      "type": "Array",      "required": true,      "items": [        {          "name": "EntityCategoryInput",          "type": "Object",          "required": false,          "fields": {            "category_id": {              "type": "String",              "required": true,              "min": 20,              "max": 20            }          }        }      ]    },    "ollama_field": {      "type": "Array",      "required": true,      "items": [        {          "name": "EntityFieldInput",          "type": "Object",          "required": false,          "fields": {            "field_id": {              "type": "String",              "required": true,              "min": 20,              "max": 20            },            "value": {              "type": "Any",              "required": false            }          }        }      ]    },    "ollama_tag": {      "type": "Array",      "required": true,      "items": [        {          "name": "EntityTagInput",          "type": "Object",          "required": false,          "fields": {            "name": {              "type": "String",              "required": true,              "max": 255            },            "value": {              "type": "String",              "required": false            }          }        }      ]    }  }}
DeepSeekR1_1_5B
DeepSeekR1_7B
DeepSeekR1_8B
DeepSeekR1_14B
DeepSeekR1_32B
DeepSeekR1_70B
DeepSeekR1_671B
Low
Medium
High
GeneratingSourceCode
Pushing
Creating
Downloading
Error
Successful
Pending
Unknown
©Copyright 2010 to 2025 Namira Software Corporation. All rights reserved.