Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add a test to ensure documentation is generated #1838

Merged
merged 5 commits into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Documentation Workflows
on:
pull_request:
jobs:
ensure-docs-generated:
name: Ensure docs are generated
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate code
run: go run ./cmd/scw-doc-gen
- name: Compute git status
run: gitStatus=$(git status --porcelain)
- name: Show git status
run: echo $gitStatus
- name: Error if non empty
run: "[ -z $gitStatus ]"
309 changes: 309 additions & 0 deletions docs/commands/apple-silicon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,309 @@
<!-- DO NOT EDIT: this file is automatically generated using scw-doc-gen -->
# Documentation for `scw apple-silicon`
Scaleway Apple silicon M1 as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation).

These dedicated Mac mini M1s are designed for developing, building, testing, and signing applications for Apple devices, including iPhones, iPads, Mac computers and much more.

Get set to explore, learn and build on a dedicated Mac mini M1 with more performance and speed than you ever thought possible.

**Apple silicon as a Service comes with a minimum allocation period of 24 hours**.

Mac mini and macOS are trademarks of Apple Inc., registered in the U.S. and other countries and regions.
IOS is a trademark or registered trademark of Cisco in the U.S. and other countries and is used by Apple under license.
Scaleway is not affiliated with Apple Inc.


- [OS management commands](#os-management-commands)
- [Get an Operating System (OS)](#get-an-operating-system-(os))
- [List all Operating System (OS)](#list-all-operating-system-(os))
- [Apple silicon management commands](#apple-silicon-management-commands)
- [Create a server](#create-a-server)
- [Delete a server](#delete-a-server)
- [Get a server](#get-a-server)
- [List all servers](#list-all-servers)
- [Reboot a server](#reboot-a-server)
- [Reinstall a server](#reinstall-a-server)
- [SSH into a server](#ssh-into-a-server)
- [Update a server](#update-a-server)
- [Wait for a server to reach a stable state](#wait-for-a-server-to-reach-a-stable-state)
- [Server-Types management commands](#server-types-management-commands)
- [Get a server type](#get-a-server-type)
- [List server types](#list-server-types)


## OS management commands

OS management commands


### Get an Operating System (OS)

Get an Operating System (OS).

**Usage:**

```
scw apple-silicon os get <os-id ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| os-id | Required | UUID of the OS you want to get |



### List all Operating System (OS)

List all Operating System (OS).

**Usage:**

```
scw apple-silicon os list [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| server-type | | List of compatible server type |
| name | | Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not "12") |



## Apple silicon management commands

Apple silicon management commands


### Create a server

Create a server.

**Usage:**

```
scw apple-silicon server create [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| name | Default: `<generated>` | Create a server with this given name |
| project-id | | Project ID to use. If none is passed the default project ID will be used |
| type | Default: `M1-M` | Create a server of the given type |



### Delete a server

Delete a server.

**Usage:**

```
scw apple-silicon server delete <server-id ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| server-id | Required | UUID of the server you want to delete |



### Get a server

Get a server.

**Usage:**

```
scw apple-silicon server get <server-id ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| server-id | Required | UUID of the server you want to get |



### List all servers

List all servers.

**Usage:**

```
scw apple-silicon server list [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| order-by | One of: `created_at_asc`, `created_at_desc` | The sort order of the returned servers |
| project-id | | List only servers of this project ID |
| organization-id | | List only servers of this organization ID |



### Reboot a server

Reboot a server.

**Usage:**

```
scw apple-silicon server reboot <server-id ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| server-id | Required | UUID of the server you want to reboot |



### Reinstall a server

Reinstall a server.

**Usage:**

```
scw apple-silicon server reinstall <server-id ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| server-id | Required | UUID of the server you want to reinstall |



### SSH into a server

Connect to distant server via the SSH protocol.

**Usage:**

```
scw apple-silicon server ssh <server-id ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| server-id | Required | Server ID to SSH into |
| username | Default: `m1` | Username used for the SSH connection |
| port | Default: `22` | Port used for the SSH connection |
| command | | Command to execute on the remote server |
| zone | Default: `fr-par-1` | Zone to target. If none is passed will use default zone from the config |



### Update a server

Update a server.

**Usage:**

```
scw apple-silicon server update <name ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| server-id | Required | UUID of the server you want to update |
| name | Required | Updated name for your server |



### Wait for a server to reach a stable state

Wait for server to reach a stable state. This is similar to using --wait flag on other action commands, but without requiring a new action on the server.

**Usage:**

```
scw apple-silicon server wait <server-id ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| server-id | Required | ID of the server. |
| zone | Default: `fr-par-1` | Zone to target. If none is passed will use default zone from the config |


**Examples:**


Wait for a server to reach a stable state
```
scw apple-silicon server wait 11111111-1111-1111-1111-111111111111
```




## Server-Types management commands

Server-Types management commands


### Get a server type

Get a server technical details.

**Usage:**

```
scw apple-silicon server-type get <server-type ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| server-type | Required | Server type identifier |



### List server types

List all server types technical details.

**Usage:**

```
scw apple-silicon server-type list
```



4 changes: 2 additions & 2 deletions docs/commands/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ scw config set [arg=value ...]
| insecure | | Set to true to allow insecure HTTPS connections |
| default-organization-id | | A default Scaleway organization id |
| default-project-id | | A default Scaleway project id |
| default-region | One of: `fr-par`, `nl-ams` | A default Scaleway region |
| default-zone | One of: `fr-par-1`, `fr-par-2`, `nl-ams-1` | A default Scaleway zone |
| default-region | One of: `fr-par`, `nl-ams`, `pl-waw` | A default Scaleway region |
| default-zone | One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `pl-waw-1` | A default Scaleway zone |
| send-telemetry | | Set to false to disable telemetry |


Expand Down
Loading