akinoncli


Nameakinoncli JSON
Version 1.0.23 PyPI version JSON
download
home_pagehttps://bitbucket.org/akinonteam/akinon-cli/
SummaryCLI for Akinon Cloud Commerce
upload_time2023-08-28 07:54:03
maintainerAkinon
docs_urlNone
authorAkinon
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Akinon Cloud Commerce CLI
Akinon CLI is an application designed to manage projects and applications
in Akinon Cloud Commerce through a command line interface.

## Installation
After installing python 3.8+, run the following command.
Then the Akinon CLI would be ready to be used.
```
$ pip install --user akinoncli
```

## Usage
Every cloud commerce user is registered to an `Account`. For a fresh user an `Account` would be
created automatically. The authorized users who are registered to `Account` can create users
for the same `Account` using the CLI or UI. (Registration is not currently available on the CLI)

`-h` command argument can be used in order to know more about the command.
(Command's required parameters, information about what it does, etc.)

Example:
```
akinoncli user -h
```
## Commands

### Authentication
In order to use Akinon CLI, the user must authenticate first.

___
* `akinoncli login`

Authentication is achieved by submitting e-mail and password.
___
* `akinoncli logout`

By logging out the previous credentials can be deleted.
___
### Public Keys
In order to access the `ProjectApp`'s repositories, public keys are required.

___
* `akinoncli publickey create {key}`

Creates public key.


| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| key      | the text inside .ssh/id_rsa.pub | Yes |

**Example**

`akinoncli publickey create "ssh-rsa AAAAB..."`
___
*  `akinoncli publickey list`

Lists the public keys.
___

* `akinoncli publickey delete {ID}`

Deletes the public key.


| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| ID      | Public Key ID | Yes |


### Applications
Users can create their own application and publish it so other users
can set up for their project and use it.

The application which you'd like to publish needs to be managed by GIT version control system.
In order to have read/write access to application's repository, the application needed to be
created in the Akinon Cloud Commerce and a public key must be created.

For an application to be distributed and compiled by the Akinon Cloud Commerce, it needed to have
a file named `akinon.json` in its home directory.


**TODO: add the link to documentation of akinon.json**
___
*  `akinoncli applicationtype list`

Lists the application types.

___
*  `akinoncli application create {name} {slug} {application_type_id}`

Creates an application.

| Parameter            | Description  | Required     |
| -------------------- | ------------ | ----------- |
| name                 | Application Name | Yes |
| slug                 | Application Slug (must be unique) | Yes |
| application_type_id  | Application Type ID (akinoncli applicationtype list) | Yes |

To see the git address you should run the `list` after creation of the application.
It can be seen as `Clone URL` column.

___
*  `akinoncli application list`

Lists the applications.
___
*  `akinoncli application get {app_id}`

Prints the details of an application.
___

In order to upload the source code of application run the following commands:
```
$ git remote add akinon {CLONE_URL}
$ git push akinon {branch_name}
```

In order to deploy an application for a project, it needs to be built by Akinon Cloud
Commerce. A stable version is required for such an action. One can create a tag
using `git tag` commands. After that, the tag needs to be pushed to the
remote repository in the Akinon Cloud Commerce system.

**Example**
```
$ git tag 1.0
$ git push akinon --tags
```

The building process can be started by CLI when the tag is pushed.
___

*  `akinoncli application build {app_id} {tag} {--note}`

Starts the building process for the given tag.

| Parameter | Description | Required |
|----------| ----------- | ----------- |
| app_id   | Application ID | Yes |
| tag      | Tag | Yes |
| --note   | Note | No


**Example**
```
$ akinoncli application build 1 1.0 --note="test note for the build"
```

___
*  `akinoncli application versions {app_id}`

Lists the built versions of the application.

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| app_id      | Application ID | Yes |


The status of version being `completed` indicates that the version is ready for deployment.

___
*  `akinoncli application version-logs <app_id> <version_id>`

Lists application version logs.

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| id      | Application ID | Yes |
| version_id| Version ID | Yes

**Example**
```
$ akinoncli application version-logs 27 518
```

___

### Projects

The projects are the ecosystem of applications working together and integrated. When a project is created
`Omnitron` application is automatically being added to project and starts running.

___
*  `akinoncli project list`
Lists the projects.
___

*  `akinoncli project create {name} {slug}`

Creates project.

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| name      | Project Name | Yes |
| slug      | Project Slug (Must be unique.) | Yes |

### Project Applications
The applications cannot be run without a project in the Akinon Cloud Commerce.
They should be related to a project and that relation can be assured with the
creation of a `ProjectApp`.

___
*  `akinoncli projectapp add {project_id} {app_id}`

Adds the application to project by creating `ProjectApp`.

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |
| app_id      | App ID | Yes |

*  `akinoncli projectapp list {project_id}`

Lists the applications of the relevant project.

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |

**Environment Parameters**

The applications are able to run with different configurations on the various projects.
The same application running with different default language on two different projects can be given as example.
For this kind of requirements, Environment Parameters can be used.
These parameters could be seen in the `ENV Variables` column when listing the applications.

___
*  `akinoncli projectapp add-env {project_id} {project_app_id} {ENV_KEY}={ENV_VALUE} {ANOTHER_ENV_KEY}={ANOTHER_ENV_VALUE}`

Adds the environment parameter on the application.

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |
| project_app_id      | Application ID | Yes |
| ENV_KEY      | The key of relevant environment parameter | Yes |
| ENV_VALUE      | The value of relevant environment parameter | Yes |
| --deploy      | Redeploy the current version to activate environment variable changes. | No |

The same command can also be used for updating.

**Example**
```
$ akinoncli projectapp add-env 1 32 LANGUAGE_CODE=en-us
```

It's also possible to use complex (i.e. non-string) values by encoding them as JSON. The value must be quoted properly
to function correctly.

```
$ akinoncli projectapp add-env 1 32 MIDDLEWARE='["my.custom.MiddlewareClass", "django.middleware.security.SecurityMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware", "django.contrib.sessions.middleware.SessionMiddleware"]'
$ akinoncli projectapp add-env 1 32 THUMBNAIL_OPTIONS='{"product-list": {"width": 273, "height": 210}, "product-detail__slider_zoom": {"quality": 90}}'
```

For larger or dynamic payloads you can use `EOF` operator in `sh`-based terminals. This also allows string interpolation without having to escape
double quotes.

```shell
img_quality=90
opts=$(cat <<EOF
{
  "product-list": {
    "width": 273,
    "height": 210,
    "quality": $img_quality
  },
  "product-detail__slider_zoom": {
    "quality": $img_quality
  }
}
EOF
)

akinoncli projectapp add-env 1 32 THUMBNAIL_OPTIONS="$opts"
```

This environment variable can then be deserialized using `django-environ` package, or `json.loads`:

```python
from environ import Env

env = Env()

DEFAULT_MIDDLEWARE = [
    "django.middleware.security.SecurityMiddleware",
    "whitenoise.middleware.WhiteNoiseMiddleware",
    "django.middleware.common.CommonMiddleware",
]
MIDDLEWARE = env.json('MIDDLEWARE', default=DEFAULT_MIDDLEWARE)  # omit `default` to throw an error if it's not set

THUMBNAIL_OPTIONS = env.json('THUMBNAIL_OPTIONS')  # throws error if THUMBNAIL_OPTIONS is not set

# print(MIDDLEWARE[0])  # prints "my.custom.MiddlewareClass"
# print(list(THUMBNAIL_OPTIONS))  # prints ["product-list", "product-detail__slider_zoom"]
```

Refer to [`django-environ` documentation](django-environ.readthedocs.io/) for further information.
___

___

*  `akinoncli projectapp remove-env {project_id} {app_id} {ENV_KEY} {ANOTHER_ENV_KEY}`

Deletes the environment parameter from the application.

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |
| project_app_id      | Application ID | Yes |
| ENV_KEY      | The key of relevant environment parameter | Yes |
| --deploy      | Redeploy the current version to activate environment variable changes. | No |

**Deploying the Application**

In order to deploy an application it needed to be built firstly.
(Those steps are explained in Applications section.)

___
*  `akinoncli projectapp deploy {project_id} {project_app_id} {tag}`

Deploys the relevant tag to the relevant project application. (That process
might take some time.)


| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |
| project_app_id      | Application ID | Yes |
| tag      | Tag of the version | Yes |

___
*  `akinoncli projectapp deploy-multiple {app_id} {tag}`

Deploys multiple project applications with given tag

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| app_id      | Application ID | Yes |
| tag      | Tag of the version | Yes |
| --project-apps      | Project App IDs | If *--deploy-all* is not used Yes otherwise No |
| --deploy-all      | Deploys all project apps with given tag | If *--project-apps* is not used Yes otherwise No |

*  `akinoncli projectapp deployments list {project_id} {app_id}`

Lists the deployments of the relevant application.
The status of deployment can be seen in the `status` column.

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |
| project_app_id      | Application ID | Yes |

___
*  `akinoncli projectapp deployment-logs project_id project_app_id deployment_id`

Lists deployment logs.

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |
| project_app_id | Project App ID | Yes |
| deployment_id | Deployment ID | Yes |

**Example**
```
$ akinoncli projectapp deployment-logs 1 1 1
```
___


**Application Log**

The applications logs can be seen following commands.
process type parameter is optional.
___
*  `akinoncli projectapp logs {project_id} {project_app_id}`

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |
| project_app_id      | Application ID | Yes |
| -p      | Process type (If that parameter is passed the relevant process typed logs would be returned) (By default returns logs with any process types ) | No |

**Example**
The following command returns a hundred logs created in the last minute.

*  `akinoncli projectapp logs 1 1`

The following command returns a hundred logs created in the last minute.

*  `akinoncli projectapp logs 1 1 -p web`


**Exporting Application Logs**

The application logs can be exported with following commands.
___

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |
| app_id      | Application ID | Yes |
| -d      | Filters logs that were created on the specified dates. Dates must be separated by commas. Date format must be YYYY-MM-DD.  | No |
| -s      | Filters logs that were created after the given specified date. Date format must be YYYY-MM-DD. | No |
| -e      | Filters logs that were created before the given specified date. Date format must be YYYY-MM-DD. | No |
| -p      | Process type (If that parameter is passed the relevant process typed logs would be returned) (By default returns logs with any process types ) | No |

**Example**

The following command exports all the logs of the given application.
* `akinoncli projectapp export-logs 1 1`

The following command exports all the logs of the given application which were created in 2021-09-23 and 2021-09-24 dates.*
`akinoncli projectapp export-logs 1 1 -d 2021-09-23,2021-09-24`

The following command exports all the logs of the given application which were created with web and beat process types.
*  `akinoncli projectapp export-logs 1 1 -p web,beat`

The following command exports all the logs of the given application which were created between 2021-09-23 and 2021-09-28 dates.
*  `akinoncli projectapp export-logs 1 1 -s 2021-09-23 -e 2021-09-28`

___
**Attaching certificate to Project Application**

In order to deploy an application with certain domain and ssl certificate, that command can be used.
One certificate can only be attached to one Project Application.

___
Attaches certificate to Project Application.

*  `akinoncli projectapp attach-certificate {project_id} {project_app_id} {certificate_id}`


| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id      | Project ID | Yes |
| project_app_id      | Application ID | Yes |
| certificate_id      | Certificate ID | Yes |

**Example**
```
$ akinoncli projectapp attach-certificate 1 1 1
```
___

### Domain and Certificate
Akinon Cloud Commerce sistemine bir uygulamayı dağıtıma çıkarırken uygulamanın ssl sertifikası ile belirli bir alan adı ile çalışmasını istediğimiz durumlarda alan adı ve sertifika oluşturarak oluşturulan sertifikayı proje uygulamasına bağlayabiliriz.

**Domain**
___
Lists the domains.
*  `akinoncli domain list`
___

Creates domain.
*  `akinoncli domain create {hostname} {is_managed}`

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| hostname        | Hostname | Yes |
| is_managed      | Alan adının akinon cloud tarafından yönetilmesini belirtir. (true, false değerlerinden biri olmalıdır) | Yes     |

**Example**
```
$ akinoncli domain create akinoncloud.net true
```

**Certificate**
___
Lists the certificates of the relevant domain.

*  `akinoncli certificate list {domain_id}`
___

Creates a certificate.

*  `akinoncli certificate create {domain_id} {fqdn}`

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| domain_id      | Domain ID | Yes |
| fqdn           | Fully Qualified Domain Name | Yes |

**Example**
```
$ akinoncli certificate create 1 test.akinoncloud.net
```


### Addons
Addons are the third-party technologies such as Redis, Sentry, PostgreSQL etc.

___
Lists the addons.
*  `akinoncli addon list {project_id} {project_app_id}`
___

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| project_id        | Project ID | Yes |
| project_app_id      | Project Application ID | Yes |

**Example**
```
$ akinoncli addon list 1 1
```


### Kube Metric Monitor

CPU and memory metrics of the applications running in the relevant Kubernetes cluster and namespace
can be seen with the following command.

___
Lists the metrics.
*  `akinoncli addon list {project_id} {project_app_id}`
___

| Parameter      | Description | Required |
| ----------- | ----------- | ----------- |
| cluster        | Cluster Name | Yes |
| namespace      | Namespace | Yes |

**Example**
```
$ akinoncli metrics list cluster1 namespace1
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://bitbucket.org/akinonteam/akinon-cli/",
    "name": "akinoncli",
    "maintainer": "Akinon",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "dev@akinon.com",
    "keywords": "",
    "author": "Akinon",
    "author_email": "dev@akinon.com",
    "download_url": "https://files.pythonhosted.org/packages/37/48/ac96e334247a18f342bc23f11b2ed49cd52dd90e0c02489b5b9026c8df7f/akinoncli-1.0.23.tar.gz",
    "platform": null,
    "description": "# Akinon Cloud Commerce CLI\nAkinon CLI is an application designed to manage projects and applications\nin Akinon Cloud Commerce through a command line interface.\n\n## Installation\nAfter installing python 3.8+, run the following command.\nThen the Akinon CLI would be ready to be used.\n```\n$ pip install --user akinoncli\n```\n\n## Usage\nEvery cloud commerce user is registered to an `Account`. For a fresh user an `Account` would be\ncreated automatically. The authorized users who are registered to `Account` can create users\nfor the same `Account` using the CLI or UI. (Registration is not currently available on the CLI)\n\n`-h` command argument can be used in order to know more about the command.\n(Command's required parameters, information about what it does, etc.)\n\nExample:\n```\nakinoncli user -h\n```\n## Commands\n\n### Authentication\nIn order to use Akinon CLI, the user must authenticate first.\n\n___\n* `akinoncli login`\n\nAuthentication is achieved by submitting e-mail and password.\n___\n* `akinoncli logout`\n\nBy logging out the previous credentials can be deleted.\n___\n### Public Keys\nIn order to access the `ProjectApp`'s repositories, public keys are required.\n\n___\n* `akinoncli publickey create {key}`\n\nCreates public key.\n\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| key      | the text inside .ssh/id_rsa.pub | Yes |\n\n**Example**\n\n`akinoncli publickey create \"ssh-rsa AAAAB...\"`\n___\n*  `akinoncli publickey list`\n\nLists the public keys.\n___\n\n* `akinoncli publickey delete {ID}`\n\nDeletes the public key.\n\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| ID      | Public Key ID | Yes |\n\n\n### Applications\nUsers can create their own application and publish it so other users\ncan set up for their project and use it.\n\nThe application which you'd like to publish needs to be managed by GIT version control system.\nIn order to have read/write access to application's repository, the application needed to be\ncreated in the Akinon Cloud Commerce and a public key must be created.\n\nFor an application to be distributed and compiled by the Akinon Cloud Commerce, it needed to have\na file named `akinon.json` in its home directory.\n\n\n**TODO: add the link to documentation of akinon.json**\n___\n*  `akinoncli applicationtype list`\n\nLists the application types.\n\n___\n*  `akinoncli application create {name} {slug} {application_type_id}`\n\nCreates an application.\n\n| Parameter            | Description  | Required     |\n| -------------------- | ------------ | ----------- |\n| name                 | Application Name | Yes |\n| slug                 | Application Slug (must be unique) | Yes |\n| application_type_id  | Application Type ID (akinoncli applicationtype list) | Yes |\n\nTo see the git address you should run the `list` after creation of the application.\nIt can be seen as `Clone URL` column.\n\n___\n*  `akinoncli application list`\n\nLists the applications.\n___\n*  `akinoncli application get {app_id}`\n\nPrints the details of an application.\n___\n\nIn order to upload the source code of application run the following commands:\n```\n$ git remote add akinon {CLONE_URL}\n$ git push akinon {branch_name}\n```\n\nIn order to deploy an application for a project, it needs to be built by Akinon Cloud\nCommerce. A stable version is required for such an action. One can create a tag\nusing `git tag` commands. After that, the tag needs to be pushed to the\nremote repository in the Akinon Cloud Commerce system.\n\n**Example**\n```\n$ git tag 1.0\n$ git push akinon --tags\n```\n\nThe building process can be started by CLI when the tag is pushed.\n___\n\n*  `akinoncli application build {app_id} {tag} {--note}`\n\nStarts the building process for the given tag.\n\n| Parameter | Description | Required |\n|----------| ----------- | ----------- |\n| app_id   | Application ID | Yes |\n| tag      | Tag | Yes |\n| --note   | Note | No\n\n\n**Example**\n```\n$ akinoncli application build 1 1.0 --note=\"test note for the build\"\n```\n\n___\n*  `akinoncli application versions {app_id}`\n\nLists the built versions of the application.\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| app_id      | Application ID | Yes |\n\n\nThe status of version being `completed` indicates that the version is ready for deployment.\n\n___\n*  `akinoncli application version-logs <app_id> <version_id>`\n\nLists application version logs.\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| id      | Application ID | Yes |\n| version_id| Version ID | Yes\n\n**Example**\n```\n$ akinoncli application version-logs 27 518\n```\n\n___\n\n### Projects\n\nThe projects are the ecosystem of applications working together and integrated. When a project is created\n`Omnitron` application is automatically being added to project and starts running.\n\n___\n*  `akinoncli project list`\nLists the projects.\n___\n\n*  `akinoncli project create {name} {slug}`\n\nCreates project.\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| name      | Project Name | Yes |\n| slug      | Project Slug (Must be unique.) | Yes |\n\n### Project Applications\nThe applications cannot be run without a project in the Akinon Cloud Commerce.\nThey should be related to a project and that relation can be assured with the\ncreation of a `ProjectApp`.\n\n___\n*  `akinoncli projectapp add {project_id} {app_id}`\n\nAdds the application to project by creating `ProjectApp`.\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n| app_id      | App ID | Yes |\n\n*  `akinoncli projectapp list {project_id}`\n\nLists the applications of the relevant project.\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n\n**Environment Parameters**\n\nThe applications are able to run with different configurations on the various projects.\nThe same application running with different default language on two different projects can be given as example.\nFor this kind of requirements, Environment Parameters can be used.\nThese parameters could be seen in the `ENV Variables` column when listing the applications.\n\n___\n*  `akinoncli projectapp add-env {project_id} {project_app_id} {ENV_KEY}={ENV_VALUE} {ANOTHER_ENV_KEY}={ANOTHER_ENV_VALUE}`\n\nAdds the environment parameter on the application.\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n| project_app_id      | Application ID | Yes |\n| ENV_KEY      | The key of relevant environment parameter | Yes |\n| ENV_VALUE      | The value of relevant environment parameter | Yes |\n| --deploy      | Redeploy the current version to activate environment variable changes. | No |\n\nThe same command can also be used for updating.\n\n**Example**\n```\n$ akinoncli projectapp add-env 1 32 LANGUAGE_CODE=en-us\n```\n\nIt's also possible to use complex (i.e. non-string) values by encoding them as JSON. The value must be quoted properly\nto function correctly.\n\n```\n$ akinoncli projectapp add-env 1 32 MIDDLEWARE='[\"my.custom.MiddlewareClass\", \"django.middleware.security.SecurityMiddleware\", \"whitenoise.middleware.WhiteNoiseMiddleware\", \"django.contrib.sessions.middleware.SessionMiddleware\"]'\n$ akinoncli projectapp add-env 1 32 THUMBNAIL_OPTIONS='{\"product-list\": {\"width\": 273, \"height\": 210}, \"product-detail__slider_zoom\": {\"quality\": 90}}'\n```\n\nFor larger or dynamic payloads you can use `EOF` operator in `sh`-based terminals. This also allows string interpolation without having to escape\ndouble quotes.\n\n```shell\nimg_quality=90\nopts=$(cat <<EOF\n{\n  \"product-list\": {\n    \"width\": 273,\n    \"height\": 210,\n    \"quality\": $img_quality\n  },\n  \"product-detail__slider_zoom\": {\n    \"quality\": $img_quality\n  }\n}\nEOF\n)\n\nakinoncli projectapp add-env 1 32 THUMBNAIL_OPTIONS=\"$opts\"\n```\n\nThis environment variable can then be deserialized using `django-environ` package, or `json.loads`:\n\n```python\nfrom environ import Env\n\nenv = Env()\n\nDEFAULT_MIDDLEWARE = [\n    \"django.middleware.security.SecurityMiddleware\",\n    \"whitenoise.middleware.WhiteNoiseMiddleware\",\n    \"django.middleware.common.CommonMiddleware\",\n]\nMIDDLEWARE = env.json('MIDDLEWARE', default=DEFAULT_MIDDLEWARE)  # omit `default` to throw an error if it's not set\n\nTHUMBNAIL_OPTIONS = env.json('THUMBNAIL_OPTIONS')  # throws error if THUMBNAIL_OPTIONS is not set\n\n# print(MIDDLEWARE[0])  # prints \"my.custom.MiddlewareClass\"\n# print(list(THUMBNAIL_OPTIONS))  # prints [\"product-list\", \"product-detail__slider_zoom\"]\n```\n\nRefer to [`django-environ` documentation](django-environ.readthedocs.io/) for further information.\n___\n\n___\n\n*  `akinoncli projectapp remove-env {project_id} {app_id} {ENV_KEY} {ANOTHER_ENV_KEY}`\n\nDeletes the environment parameter from the application.\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n| project_app_id      | Application ID | Yes |\n| ENV_KEY      | The key of relevant environment parameter | Yes |\n| --deploy      | Redeploy the current version to activate environment variable changes. | No |\n\n**Deploying the Application**\n\nIn order to deploy an application it needed to be built firstly.\n(Those steps are explained in Applications section.)\n\n___\n*  `akinoncli projectapp deploy {project_id} {project_app_id} {tag}`\n\nDeploys the relevant tag to the relevant project application. (That process\nmight take some time.)\n\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n| project_app_id      | Application ID | Yes |\n| tag      | Tag of the version | Yes |\n\n___\n*  `akinoncli projectapp deploy-multiple {app_id} {tag}`\n\nDeploys multiple project applications with given tag\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| app_id      | Application ID | Yes |\n| tag      | Tag of the version | Yes |\n| --project-apps      | Project App IDs | If *--deploy-all* is not used Yes otherwise No |\n| --deploy-all      | Deploys all project apps with given tag | If *--project-apps* is not used Yes otherwise No |\n\n*  `akinoncli projectapp deployments list {project_id} {app_id}`\n\nLists the deployments of the relevant application.\nThe status of deployment can be seen in the `status` column.\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n| project_app_id      | Application ID | Yes |\n\n___\n*  `akinoncli projectapp deployment-logs project_id project_app_id deployment_id`\n\nLists deployment logs.\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n| project_app_id | Project App ID | Yes |\n| deployment_id | Deployment ID | Yes |\n\n**Example**\n```\n$ akinoncli projectapp deployment-logs 1 1 1\n```\n___\n\n\n**Application Log**\n\nThe applications logs can be seen following commands.\nprocess type parameter is optional.\n___\n*  `akinoncli projectapp logs {project_id} {project_app_id}`\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n| project_app_id      | Application ID | Yes |\n| -p      | Process type (If that parameter is passed the relevant process typed logs would be returned) (By default returns logs with any process types ) | No |\n\n**Example**\nThe following command returns a hundred logs created in the last minute.\n\n*  `akinoncli projectapp logs 1 1`\n\nThe following command returns a hundred logs created in the last minute.\n\n*  `akinoncli projectapp logs 1 1 -p web`\n\n\n**Exporting Application Logs**\n\nThe application logs can be exported with following commands.\n___\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n| app_id      | Application ID | Yes |\n| -d      | Filters logs that were created on the specified dates. Dates must be separated by commas. Date format must be YYYY-MM-DD.  | No |\n| -s      | Filters logs that were created after the given specified date. Date format must be YYYY-MM-DD. | No |\n| -e      | Filters logs that were created before the given specified date. Date format must be YYYY-MM-DD. | No |\n| -p      | Process type (If that parameter is passed the relevant process typed logs would be returned) (By default returns logs with any process types ) | No |\n\n**Example**\n\nThe following command exports all the logs of the given application.\n* `akinoncli projectapp export-logs 1 1`\n\nThe following command exports all the logs of the given application which were created in 2021-09-23 and 2021-09-24 dates.*\n`akinoncli projectapp export-logs 1 1 -d 2021-09-23,2021-09-24`\n\nThe following command exports all the logs of the given application which were created with web and beat process types.\n*  `akinoncli projectapp export-logs 1 1 -p web,beat`\n\nThe following command exports all the logs of the given application which were created between 2021-09-23 and 2021-09-28 dates.\n*  `akinoncli projectapp export-logs 1 1 -s 2021-09-23 -e 2021-09-28`\n\n___\n**Attaching certificate to Project Application**\n\nIn order to deploy an application with certain domain and ssl certificate, that command can be used.\nOne certificate can only be attached to one Project Application.\n\n___\nAttaches certificate to Project Application.\n\n*  `akinoncli projectapp attach-certificate {project_id} {project_app_id} {certificate_id}`\n\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id      | Project ID | Yes |\n| project_app_id      | Application ID | Yes |\n| certificate_id      | Certificate ID | Yes |\n\n**Example**\n```\n$ akinoncli projectapp attach-certificate 1 1 1\n```\n___\n\n### Domain and Certificate\nAkinon Cloud Commerce sistemine bir uygulamay\u0131 da\u011f\u0131t\u0131ma \u00e7\u0131kar\u0131rken uygulaman\u0131n ssl sertifikas\u0131 ile belirli bir alan ad\u0131 ile \u00e7al\u0131\u015fmas\u0131n\u0131 istedi\u011fimiz durumlarda alan ad\u0131 ve sertifika olu\u015fturarak olu\u015fturulan sertifikay\u0131 proje uygulamas\u0131na ba\u011flayabiliriz.\n\n**Domain**\n___\nLists the domains.\n*  `akinoncli domain list`\n___\n\nCreates domain.\n*  `akinoncli domain create {hostname} {is_managed}`\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| hostname        | Hostname | Yes |\n| is_managed      | Alan ad\u0131n\u0131n akinon cloud taraf\u0131ndan y\u00f6netilmesini belirtir. (true, false de\u011ferlerinden biri olmal\u0131d\u0131r) | Yes     |\n\n**Example**\n```\n$ akinoncli domain create akinoncloud.net true\n```\n\n**Certificate**\n___\nLists the certificates of the relevant domain.\n\n*  `akinoncli certificate list {domain_id}`\n___\n\nCreates a certificate.\n\n*  `akinoncli certificate create {domain_id} {fqdn}`\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| domain_id      | Domain ID | Yes |\n| fqdn           | Fully Qualified Domain Name | Yes |\n\n**Example**\n```\n$ akinoncli certificate create 1 test.akinoncloud.net\n```\n\n\n### Addons\nAddons are the third-party technologies such as Redis, Sentry, PostgreSQL etc.\n\n___\nLists the addons.\n*  `akinoncli addon list {project_id} {project_app_id}`\n___\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| project_id        | Project ID | Yes |\n| project_app_id      | Project Application ID | Yes |\n\n**Example**\n```\n$ akinoncli addon list 1 1\n```\n\n\n### Kube Metric Monitor\n\nCPU and memory metrics of the applications running in the relevant Kubernetes cluster and namespace\ncan be seen with the following command.\n\n___\nLists the metrics.\n*  `akinoncli addon list {project_id} {project_app_id}`\n___\n\n| Parameter      | Description | Required |\n| ----------- | ----------- | ----------- |\n| cluster        | Cluster Name | Yes |\n| namespace      | Namespace | Yes |\n\n**Example**\n```\n$ akinoncli metrics list cluster1 namespace1\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CLI for Akinon Cloud Commerce",
    "version": "1.0.23",
    "project_urls": {
        "Homepage": "https://bitbucket.org/akinonteam/akinon-cli/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a4b7bc85297f78373191cef5e3643f24590fd4883b9512dfa9baa50ebc399107",
                "md5": "cbade9411fa003271f2139c410c2aab6",
                "sha256": "2b084765ef8733668d225855bb755ae4a305e09a86067d5b4b2e300f2a2292bf"
            },
            "downloads": -1,
            "filename": "akinoncli-1.0.23-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cbade9411fa003271f2139c410c2aab6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 22992,
            "upload_time": "2023-08-28T07:54:01",
            "upload_time_iso_8601": "2023-08-28T07:54:01.781325Z",
            "url": "https://files.pythonhosted.org/packages/a4/b7/bc85297f78373191cef5e3643f24590fd4883b9512dfa9baa50ebc399107/akinoncli-1.0.23-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3748ac96e334247a18f342bc23f11b2ed49cd52dd90e0c02489b5b9026c8df7f",
                "md5": "3f6d9d3dad0332a7e8088842bc8128d2",
                "sha256": "836a3dfb2c0dee9be01198bf63dd3bf39df7521b36e403fee2aece240844132c"
            },
            "downloads": -1,
            "filename": "akinoncli-1.0.23.tar.gz",
            "has_sig": false,
            "md5_digest": "3f6d9d3dad0332a7e8088842bc8128d2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 22429,
            "upload_time": "2023-08-28T07:54:03",
            "upload_time_iso_8601": "2023-08-28T07:54:03.567172Z",
            "url": "https://files.pythonhosted.org/packages/37/48/ac96e334247a18f342bc23f11b2ed49cd52dd90e0c02489b5b9026c8df7f/akinoncli-1.0.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-28 07:54:03",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "codeberg": false,
    "bitbucket_user": "akinonteam",
    "bitbucket_project": "akinon-cli",
    "lcname": "akinoncli"
}
        
Elapsed time: 0.11173s