loom-spinner-cli/README.md

66 lines
1.7 KiB
Markdown
Raw Normal View History

# Loom | Spinner
An environment management application for PHP developers.
2025-04-13 22:17:49 +01:00
# Dev Notes
**Argument priority:**
- Those passed explicitly in the CLI commands
- Any set within `{projectDirectory}/spinner.yaml`
- Fall back to `/config/spinner.yaml`
2025-04-13 22:17:49 +01:00
# Commands
2025-04-13 22:17:49 +01:00
## Command: `spin:up`
2025-04-13 22:17:49 +01:00
Creates a new PHP development environment and mounts your project files.
2025-04-13 22:17:49 +01:00
### Arguments
2025-04-13 22:17:49 +01:00
> #### Argument: name
>
> **Required?** ✅
>
> The name of your Docker containers. Your containers will spin up with the name {name}-{service}-1 i.e.
>
> `spinner spin:up name=test path=/path`
>
> Results in containers named `test-php-1` and `test-nginx-1`
2025-04-13 22:17:49 +01:00
> #### Argument: path
>
> **Required?** ✅
>
> The **absolute path** on your system to the project you want to create containers for.
2025-04-13 20:13:19 +01:00
2025-04-13 22:17:49 +01:00
### Options
2025-04-13 20:13:19 +01:00
2025-04-13 22:17:49 +01:00
> #### Option: --php
>
> **Required?** ❌
>
> Defines the PHP version that your container will use. You can omit this flag and set the PHP version inside your
> projects `spinner.yaml` file. Otherwise, will use the default value found in `config/spinner.yaml`
2025-04-13 20:13:19 +01:00
2025-04-13 22:17:49 +01:00
> #### Option: --node
>
> **Required?** ❌
>
> Set which version of Node to install in your container. Is ignored if the `--disable-node` flag is
> passed, or if Node is disabled in your projects `spinner.yaml` file. Equivalent to setting `options.environment.node.version = x`
> in your projects Spinner config.
> #### Option: --disable-node
>
> **Required?** ❌
>
> Disables Node for your environment, so it isn't included in your PHP container. Equivalent to setting `options.environment.node.enabled = false`
> in your Spinner config.
> #### Option: --disable-server
>
> **Required?** ❌
>
> Does not install a webserver (so no Nginx). Useful if you just need a PHP container to run
> unit tests or something.