Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 7082c6b

Browse files
committed
chore: release v0.47.0
Signed-off-by: Toma Puljak <[email protected]>
1 parent d04dbcb commit 7082c6b

File tree

7 files changed

+197
-173
lines changed

7 files changed

+197
-173
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "docs",
33
"license": "Apache-2.0",
44
"type": "module",
5-
"version": "0.46.0",
5+
"version": "0.47.0",
66
"scripts": {
77
"postinstall": "is-ci || husky",
88
"dev": "astro dev --host",

src/content/docs/installation/installation.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ You can install Daytona by manually downloading the binary and placing it in you
3232

3333
```shell
3434
# x86-64
35-
curl -sf -L https://download.daytona.io/daytona/v0.46/daytona-linux-amd64 -o daytona
35+
curl -sf -L https://download.daytona.io/daytona/v0.47/daytona-linux-amd64 -o daytona
3636
# ARM64
37-
curl -sf -L https://download.daytona.io/daytona/v0.46/daytona-linux-arm64 -o daytona
37+
curl -sf -L https://download.daytona.io/daytona/v0.47/daytona-linux-arm64 -o daytona
3838
```
3939

4040
:::
@@ -57,9 +57,9 @@ You can install Daytona by manually downloading the binary and placing it in you
5757

5858
```shell
5959
# x86-64/Intel-based
60-
curl -sf -L https://download.daytona.io/daytona/v0.46/daytona-darwin-amd64 -o daytona
60+
curl -sf -L https://download.daytona.io/daytona/v0.47/daytona-darwin-amd64 -o daytona
6161
# ARM64/Apple Silicon
62-
curl -sf -L https://download.daytona.io/daytona/v0.46/daytona-darwin-arm64 -o daytona
62+
curl -sf -L https://download.daytona.io/daytona/v0.47/daytona-darwin-arm64 -o daytona
6363
```
6464

6565
:::
@@ -75,7 +75,7 @@ Install Daytona on Windows using the following PowerShell script:
7575
```powershell
7676
$architecture = if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64") { "amd64" } else { "arm64" }
7777
md -Force "$Env:APPDATA\bin\daytona"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12';
78-
Invoke-WebRequest -URI "https://download.daytona.io/daytona/v0.46/daytona-windows-$architecture.exe" -OutFile "$Env:APPDATA\bin\daytona\daytona.exe";
78+
Invoke-WebRequest -URI "https://download.daytona.io/daytona/v0.47/daytona-windows-$architecture.exe" -OutFile "$Env:APPDATA\bin\daytona\daytona.exe";
7979
$env:Path += ";" + $Env:APPDATA + "\bin\daytona"; [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User);
8080
daytona serve;
8181
```
@@ -85,9 +85,9 @@ You can install Daytona by manually downloading the binary and placing it in you
8585

8686
```sh
8787
# x86-64
88-
curl -sf -L https://download.daytona.io/daytona/v0.46/daytona-windows-amd64.exe -o daytona
88+
curl -sf -L https://download.daytona.io/daytona/v0.47/daytona-windows-amd64.exe -o daytona
8989
# AArch64
90-
curl -sf -L https://download.daytona.io/daytona/v0.46/daytona-windows-arm64.exe -o daytona
90+
curl -sf -L https://download.daytona.io/daytona/v0.47/daytona-windows-arm64.exe -o daytona
9191
```
9292

9393
:::

src/content/docs/installation/method/script-powershell.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const partial = true
1111
```powershell
1212
$architecture = if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64") { "amd64" } else { "arm64" }
1313
md -Force "$Env:APPDATA\bin\daytona"; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12';
14-
Invoke-WebRequest -URI "https://download.daytona.io/daytona/v0.46/daytona-windows-$architecture.exe" -OutFile "$Env:APPDATA\bin\daytona\daytona.exe";
14+
Invoke-WebRequest -URI "https://download.daytona.io/daytona/v0.47/daytona-windows-$architecture.exe" -OutFile "$Env:APPDATA\bin\daytona\daytona.exe";
1515
$env:Path += ";" + $Env:APPDATA + "\bin\daytona"; [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User);
1616
daytona serve;
1717
```
@@ -21,9 +21,9 @@ You can install Daytona by manually downloading the binary and placing it in you
2121

2222
```powershell
2323
# x86-64
24-
curl -sf -L https://download.daytona.io/daytona/v0.46/daytona-windows-amd64.exe -o daytona
24+
curl -sf -L https://download.daytona.io/daytona/v0.47/daytona-windows-amd64.exe -o daytona
2525
# AArch64
26-
curl -sf -L https://download.daytona.io/daytona/v0.46/daytona-windows-arm64.exe -o daytona
26+
curl -sf -L https://download.daytona.io/daytona/v0.47/daytona-windows-arm64.exe -o daytona
2727
```
2828

2929
</Aside>

src/content/docs/tools/api.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,16 @@ Set the server configuration
742742
| :-------- | :---------- |
743743
| `200` | OK |
744744

745+
## GET /server/logs
746+
747+
List server log files
748+
749+
### Responses
750+
751+
| Status Code | Description |
752+
| :-------- | :---------- |
753+
| `200` | OK |
754+
745755
## POST /server/network-key
746756

747757
Generate a new authentication key

src/content/docs/tools/cli.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,22 @@ daytona server logs [flags]
947947
__Flags__
948948
| Long | Short | Description |
949949
| :--- | :---- | :---------- |
950-
| `--file` | | Read logs from local server log file |
950+
| `--file` | | Read specific log file |
951951
| `--follow` | `-f` | Follow logs |
952+
| `--local` | `-l` | Read local server log files |
953+
| `--help` | | help for daytona |
954+
955+
## daytona server logs list
956+
957+
Lists Daytona Server Log Files
958+
959+
```shell
960+
daytona server logs list [flags]
961+
```
962+
963+
__Flags__
964+
| Long | Short | Description |
965+
| :--- | :---- | :---------- |
952966
| `--help` | | help for daytona |
953967

954968
## daytona server restart

tools/update-cli-reference.js

Lines changed: 89 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import * as _fs from "fs";
2-
const fs = _fs.promises;
3-
import { extname } from "path";
4-
const __dirname = import.meta.dirname;
1+
import * as _fs from 'fs'
2+
import { extname } from 'path'
3+
import { parseArgs } from 'util'
4+
import * as yaml from 'yaml'
55

6-
import { parseArgs } from "util";
7-
import pkg from "../package.json" assert { type: "json" };
6+
const fs = _fs.promises
87

9-
import * as yaml from "yaml";
8+
const __dirname = import.meta.dirname
109

1110
// content to appear above the commands outline
1211
const prepend = `---
@@ -35,119 +34,120 @@ You can access this documentation on a per-command basis by appending the \`--he
3534
<Aside type="note">
3635
This reference does not apply to the \`daytona\` command when run inside of a Workspace.
3736
</Aside>
38-
`;
37+
`
3938

4039
// content to appear below the commands outline
41-
const append = ``;
40+
const append = ``
4241

4342
const notes = {
44-
"daytona autocomplete": `\n<Aside type="note">
43+
'daytona autocomplete': `\n<Aside type="note">
4544
If using bash shell environment, make sure you have bash-completion installed in order to get full autocompletion functionality.
4645
Linux Installation: \`\`\`sudo apt-get install bash-completion\`\`\`
4746
macOS Installation: \`\`\`brew install bash-completion\`\`\`
48-
</Aside>`};
47+
</Aside>`,
48+
}
4949

5050
async function fetchRawDocs(ref) {
51-
const url = "https://api.github.com/repos/daytonaio/daytona/contents/hack/docs";
52-
const request = await fetch(`${url}?ref=${ref}`);
53-
const response = await request.json();
51+
const url =
52+
'https://api.github.com/repos/daytonaio/daytona/contents/hack/docs'
53+
const request = await fetch(`${url}?ref=${ref}`)
54+
const response = await request.json()
5455

55-
const files = [];
56+
const files = []
5657

57-
for (const file of response) {
58-
const { download_url } = file;
58+
for (const file of response) {
59+
const { download_url } = file
5960

60-
if (!download_url) continue;
61+
if (!download_url) continue
6162

62-
const contentsReq = await fetch(download_url);
63-
let contents = await contentsReq.text();
63+
const contentsReq = await fetch(download_url)
64+
let contents = await contentsReq.text()
6465

65-
contents = yaml.parse(contents);
66+
contents = yaml.parse(contents)
6667

67-
files.push(contents);
68-
}
68+
files.push(contents)
69+
}
6970

70-
return files;
71+
return files
7172
}
7273

7374
function flagToRow(flag) {
74-
let { name, shorthand, usage } = flag;
75+
let { name, shorthand, usage } = flag
7576

76-
name = `\`--${name}\``;
77-
shorthand = shorthand ? `\`-${shorthand}\`` : "";
78-
usage = usage ? usage : "";
77+
name = `\`--${name}\``
78+
shorthand = shorthand ? `\`-${shorthand}\`` : ''
79+
usage = usage ? usage : ''
7980

80-
return `| ${name} | ${shorthand} | ${usage} |\n`;
81+
return `| ${name} | ${shorthand} | ${usage} |\n`
8182
}
8283

8384
function yamlToMarkdown(files) {
84-
return files.map((rawDoc) => {
85-
let output = "";
86-
output += `## ${rawDoc.name}\n`;
87-
output += `${rawDoc.synopsis}\n\n`;
88-
89-
if (!rawDoc.usage) {
90-
rawDoc.usage = `${rawDoc.name} [flags]`;
91-
}
92-
93-
output += "```shell\n";
94-
output += `${rawDoc.usage}\n`;
95-
output += "```\n\n";
96-
97-
98-
output += "__Flags__\n";
99-
output += "| Long | Short | Description |\n";
100-
output += "| :--- | :---- | :---------- |\n";
101-
102-
if (rawDoc.options) {
103-
for (const flag of rawDoc.options) {
104-
let row = flagToRow(flag);
105-
output += row;
106-
}
107-
}
108-
109-
if (rawDoc.inherited_options) {
110-
for (const flag of rawDoc.inherited_options) {
111-
let row = flagToRow(flag);
112-
output += row;
113-
}
114-
}
115-
116-
if (notes[rawDoc.name]) {
117-
output += notes[rawDoc.name];
118-
}
119-
120-
output += "\n";
121-
122-
return output;
123-
});
85+
return files.map(rawDoc => {
86+
let output = ''
87+
output += `## ${rawDoc.name}\n`
88+
output += `${rawDoc.synopsis}\n\n`
89+
90+
if (!rawDoc.usage) {
91+
rawDoc.usage = `${rawDoc.name} [flags]`
92+
}
93+
94+
output += '```shell\n'
95+
output += `${rawDoc.usage}\n`
96+
output += '```\n\n'
97+
98+
output += '__Flags__\n'
99+
output += '| Long | Short | Description |\n'
100+
output += '| :--- | :---- | :---------- |\n'
101+
102+
if (rawDoc.options) {
103+
for (const flag of rawDoc.options) {
104+
let row = flagToRow(flag)
105+
output += row
106+
}
107+
}
108+
109+
if (rawDoc.inherited_options) {
110+
for (const flag of rawDoc.inherited_options) {
111+
let row = flagToRow(flag)
112+
output += row
113+
}
114+
}
115+
116+
if (notes[rawDoc.name]) {
117+
output += notes[rawDoc.name]
118+
}
119+
120+
output += '\n'
121+
122+
return output
123+
})
124124
}
125125

126126
async function process(args) {
127-
const { output, ref } = args.values;
128-
console.log(`grabbing docs for ${ref}...`);
127+
const { output, ref } = args.values
128+
console.log(`grabbing docs for ${ref}...`)
129129

130-
// grab the files from GitHub
131-
let files = await fetchRawDocs(ref);
132-
let transformed = yamlToMarkdown(files);
130+
// grab the files from GitHub
131+
let files = await fetchRawDocs(ref)
132+
let transformed = yamlToMarkdown(files)
133133

134-
const singleMarkdown = transformed.join("\n");
135-
console.log(`writing to '${output}'...`);
136-
await fs.writeFile(output, `${prepend}\n${singleMarkdown}\n${append}`);
137-
console.log("done");
134+
const singleMarkdown = transformed.join('\n')
135+
console.log(`writing to '${output}'...`)
136+
await fs.writeFile(output, `${prepend}\n${singleMarkdown}\n${append}`)
137+
console.log('done')
138138
}
139139

140140
const commandOpts = {
141-
ref: {
142-
type: "string",
143-
default: `v${pkg.version}`
144-
},
145-
output: {
146-
type: "string",
147-
short: "o",
148-
default: `${__dirname}/../src/content/docs/tools/cli.mdx`
149-
}
141+
ref: {
142+
type: 'string',
143+
default: `v0.47.0`,
144+
},
145+
output: {
146+
type: 'string',
147+
short: 'o',
148+
default: `${__dirname}/../src/content/docs/tools/cli.mdx`,
149+
},
150150
}
151151

152-
const args = parseArgs({ options: commandOpts });
153-
process(args);
152+
const args = parseArgs({ options: commandOpts })
153+
process(args)

0 commit comments

Comments
 (0)