Compare commits

4 الالتزامات

المؤلف SHA1 الرسالة التاريخ
cfa09f6271 added docsify-copy-code plugin 2025-09-15 11:43:50 +03:00
aa49f9b478 updated Application.md 2025-09-15 11:40:31 +03:00
16b14fc501 updated _sidebar.md 2025-09-15 11:08:22 +03:00
c1cd7a6091 added tabs 2025-09-15 10:49:09 +03:00
4 ملفات معدلة مع 85 إضافات و14 حذوفات

عرض الملف

@@ -1,4 +1,4 @@
## What is an Application?
# What is an Application?
When working with the Ghaymah CLI, an **Application** is the central resource youll interact with.
Its not just source code its a deployable unit wrapped in a container, ready to run anywhere.
@@ -11,44 +11,88 @@ Everything else like containers, configs, and logs revolves around it.
---
# Basic Usage
## Basic Usage
```bash
gy resource app [command]
```
Aliases: app, a
> **Tip:** You can use -h or --help to see all available options.
```bash
gy resource app --help
```
## creating an application
### step 1: Initialize the Application
Run the following command to create a new application:
```bash
gy resource app init -p project_id
```
>If you dont know your project ID or havent created a project yet, see the [Projects](Project.md) documentation.
#### Flags
| Flag | what does it do | comment |
| ------------- | ------------------------- | ------------------------------------ |
| -p project_id | specifies the project id | required |
| -n name | Sets the application name | Optional, defaults to directory name |
### Step 2: Deploy the Application
#### deploying from a Dockerfile
### Step 2: deploying from a Dockerfile
To deploy using a **Dockerfile**, ensure that:
- A `Dockerfile` exists in the project directory.
- All necessary files referenced by the `Dockerfile` are present in the same directory.
Once these requirements are met, deploy the application with:
```bash
gy resource app launch
```
#### Deploying from a git repository
## Configuring the .ghaymah.json
Example `.ghaymah.json`
```json
{
"id": "ac2d8eb7-ff49-4b8d-9a8e-92cd3aae22a6",
"name": "nginx",
"projectId": "b887e332-3ecd-4187-bdfb-17d8a437833e",
"ports": [
{
"expose": true,
"number": 80
}
],
"publicAccess": {
"enabled": true,
"domain": "auto"
},
"resourceTier": "t1",
"dockerFileName": "Dockerfile"
}
```
### Changing values
You can change **name**, exposed port, and **dockerFileName** freely.
>you can only have one port per application.
>
### Adding environment variables
Add an `env` object to the top-level JSON.Example:
```json
"env": {
"foo": "bar",
"port": 8080
}
```

عرض الملف

@@ -1,6 +1,4 @@
- [Getting Started](getting-started.md)
- Features
<!-- - [Integrations](features/integrations.md) -->
- [Projects](Project.md)
- [Application](Application.md)

عرض الملف

@@ -7,8 +7,14 @@ This topic describes how to install the latest release of **Ghaymah Command Line
## Ghaymah CLI Install Instructions
### Installation
<!-- tabs:start -->
#### **Step 1:** Download & Install
#### **Linux**
<!-- tabs:start -->
#### **Debian**
Download & Install
Run the following command to install the latest release of the Ghaymah CLI:
@@ -16,7 +22,17 @@ Run the following command to install the latest release of the Ghaymah CLI:
curl -sSl https://cli.ghaymah.systems/install.sh | bash
```
#### **Step 2:** Update PATH
#### **Redhat**
1.Download & Install
Run the following command to install the latest release of the Ghaymah CLI:
```bash
curl -sSl https://cli.ghaymah.systems/install.sh | bash
```
2.update PATH
Add the CLI to your PATH and reload your shell configuration:
@@ -25,7 +41,18 @@ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
```
#### **Step 3:** Verify Installation
<!-- tabs:end -->
#### **Macos**
Bonjour!
#### **Windows**
Ciao!
<!-- tabs:end -->
### Verifying Installation
Check that the CLI is installed correctly:

عرض الملف

@@ -32,8 +32,10 @@
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
<!-- Recommended -->
Recommended
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
</body>
</html>