Update Project.md and Application.md
هذا الالتزام موجود في:
@@ -32,7 +32,7 @@ Run the following command to create a new application:
|
|||||||
```bash
|
```bash
|
||||||
gy resource app init -p project_id
|
gy resource app init -p project_id
|
||||||
```
|
```
|
||||||
>If you don’t know your project ID or haven’t created a project yet, see the [[Project]] documentation.
|
>If you don’t know your project ID or haven’t created a project yet, see the [Projects](Project.md) documentation.
|
||||||
#### Flags
|
#### Flags
|
||||||
|
|
||||||
| Flag | what does it do | comment |
|
| Flag | what does it do | comment |
|
||||||
|
109
Project.md
109
Project.md
@@ -1,39 +1,98 @@
|
|||||||
## Create project
|
# Projects
|
||||||
```
|
|
||||||
gy resource project create --set .name="project_name"
|
Projects are the foundation of resource organization in Ghaymah CLI. They provide a structured way to group and manage your resources, making it easier to maintain complex deployments and collaborate with team members.
|
||||||
```
|
|
||||||
Or
|
|
||||||
|
|
||||||
|
## Commands Reference
|
||||||
|
|
||||||
|
### Creating a Project
|
||||||
|
|
||||||
|
Create a new project with a specified name:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gy r p c --set .name="project_name"
|
gy resource project create --set .name="my-awesome-project"
|
||||||
```
|
```
|
||||||
|
|
||||||
## List the projects :
|
**Short form:**
|
||||||
|
```bash
|
||||||
|
gy r p c --set .name="my-awesome-project"
|
||||||
|
```
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
```bash
|
||||||
|
# Create a project for a web application
|
||||||
|
gy resource project create --set .name="web-app-frontend"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Listing Projects
|
||||||
|
|
||||||
|
View all existing projects:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gy resource project get
|
gy resource project get
|
||||||
```
|
```
|
||||||
Or
|
|
||||||
|
**Short form:**
|
||||||
|
```bash
|
||||||
|
gy r p g
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Updating a Project
|
||||||
|
|
||||||
|
Modify an existing project's properties:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gy r p g
|
gy resource project update <PROJECT_ID> --set .name="updated-name"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Short form:**
|
||||||
## Update on exiting project :
|
|
||||||
```bash
|
```bash
|
||||||
gy resource project update project_ID --set .name="new_name"
|
gy r p u <PROJECT_ID> --set .name="updated-name"
|
||||||
```
|
```
|
||||||
Or
|
|
||||||
```bash
|
|
||||||
gy r p u update project_ID --set .name="new_name"
|
|
||||||
```
|
|
||||||
|
|
||||||
|
**Example:**
|
||||||
## Delete project :
|
|
||||||
```bash
|
```bash
|
||||||
gy resource project delete project_ID
|
# Update project name
|
||||||
```
|
gy resource project update proj_123abc --set .name="web-app-backend"
|
||||||
Or
|
```
|
||||||
|
|
||||||
|
### Deleting a Project
|
||||||
|
|
||||||
|
Remove a project and all its associated resources:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
gy r p d project_ID
|
gy resource project delete <PROJECT_ID>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Short form:**
|
||||||
|
```bash
|
||||||
|
gy r p d <PROJECT_ID>
|
||||||
|
```
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
```bash
|
||||||
|
# Delete project by ID
|
||||||
|
gy resource project delete proj_123abc
|
||||||
|
```
|
||||||
|
|
||||||
|
> ⚠️ **Warning**: Deleting a project will permanently remove all associated resources. This action cannot be undone.
|
||||||
|
|
||||||
|
## Best Practices
|
||||||
|
|
||||||
|
### Naming Conventions
|
||||||
|
- Use descriptive names: `web-app-frontend`, `api-service-v2`
|
||||||
|
- Include environment indicators: `my-app-staging`, `my-app-production`
|
||||||
|
- Keep names concise but meaningful
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Related Commands
|
||||||
|
|
||||||
|
- `gy resource --help` - View all resource management commands
|
||||||
|
- `gy resource project --help` - View all project management commands
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
- [Getting Started](Getting%20started.md)
|
- [Getting Started](getting-started.md)
|
||||||
|
|
||||||
- Features
|
- Features
|
||||||
<!-- - [Integrations](features/integrations.md) -->
|
<!-- - [Integrations](features/integrations.md) -->
|
||||||
|
المرجع في مشكلة جديدة
حظر مستخدم