Skip to content
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
10 changes: 5 additions & 5 deletions src/content/docs/api/_manual/sprites.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import CodeSnippets from '@/components/CodeSnippets.astro';
-H "Content-Type: application/json" \\
-d '{"name": "my-sprite"}' \\
"https://api.sprites.dev/v1/sprites"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);
const spriteName = process.env.SPRITE_NAME;
Expand Down Expand Up @@ -147,7 +147,7 @@ IO.puts("Sprite '\#{sprite_name}' created")` }
examples={[
{ language: 'curl', code: `curl -H "Authorization: Bearer $SPRITE_TOKEN" \\
"https://api.sprites.dev/v1/sprites"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);

Expand Down Expand Up @@ -229,7 +229,7 @@ sprites |> Jason.encode!(pretty: true) |> IO.puts()` }
examples={[
{ language: 'curl', code: `curl -H "Authorization: Bearer $SPRITE_TOKEN" \\
"https://api.sprites.dev/v1/sprites/$SPRITE_NAME"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);
const spriteName = process.env.SPRITE_NAME;
Expand Down Expand Up @@ -324,7 +324,7 @@ sprite |> Jason.encode!(pretty: true) |> IO.puts()` }
-H "Content-Type: application/json" \\
-d '{"url_settings": {"auth": "public"}}' \\
"https://api.sprites.dev/v1/sprites/$SPRITE_NAME"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);
const spriteName = process.env.SPRITE_NAME;
Expand Down Expand Up @@ -408,7 +408,7 @@ IO.puts("URL settings updated")` }
{ language: 'curl', code: `curl -X DELETE \\
-H "Authorization: Bearer $SPRITE_TOKEN" \\
"https://api.sprites.dev/v1/sprites/$SPRITE_NAME"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);
const spriteName = process.env.SPRITE_NAME;
Expand Down
10 changes: 5 additions & 5 deletions src/content/docs/api/dev-latest/sprites.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import CodeSnippets from '@/components/CodeSnippets.astro';
-H "Content-Type: application/json" \\
-d '{"name": "my-sprite"}' \\
"https://api.sprites.dev/v1/sprites"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);
const spriteName = process.env.SPRITE_NAME;
Expand Down Expand Up @@ -147,7 +147,7 @@ IO.puts("Sprite '\#{sprite_name}' created")` }
examples={[
{ language: 'curl', code: `curl -H "Authorization: Bearer $SPRITE_TOKEN" \\
"https://api.sprites.dev/v1/sprites"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);

Expand Down Expand Up @@ -229,7 +229,7 @@ sprites |> Jason.encode!(pretty: true) |> IO.puts()` }
examples={[
{ language: 'curl', code: `curl -H "Authorization: Bearer $SPRITE_TOKEN" \\
"https://api.sprites.dev/v1/sprites/$SPRITE_NAME"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);
const spriteName = process.env.SPRITE_NAME;
Expand Down Expand Up @@ -324,7 +324,7 @@ sprite |> Jason.encode!(pretty: true) |> IO.puts()` }
-H "Content-Type: application/json" \\
-d '{"url_settings": {"auth": "public"}}' \\
"https://api.sprites.dev/v1/sprites/$SPRITE_NAME"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);
const spriteName = process.env.SPRITE_NAME;
Expand Down Expand Up @@ -408,7 +408,7 @@ IO.puts("URL settings updated")` }
{ language: 'curl', code: `curl -X DELETE \\
-H "Authorization: Bearer $SPRITE_TOKEN" \\
"https://api.sprites.dev/v1/sprites/$SPRITE_NAME"` },
{ language: 'javascript', code: `import { SpritesClient } from "@anthropic-ai/sprites";
{ language: 'javascript', code: `import { SpritesClient } from "@fly/sprites";

const client = new SpritesClient(process.env.SPRITE_TOKEN);
const spriteName = process.env.SPRITE_NAME;
Expand Down
47 changes: 36 additions & 11 deletions src/content/docs/cli/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ sprite list --prefix dev

### `sprite destroy`

Destroy the current sprite
Destroy a sprite

```bash
sprite destroy [options]
sprite destroy [options] [sprite-name]
```

**Options:**
Expand All @@ -245,8 +245,9 @@ sprite destroy [options]

**Examples:**
```bash
sprite destroy
sprite destroy -o myorg -s mysprite
sprite destroy mysprite
sprite destroy -o myorg mysprite
sprite destroy -s mysprite
sprite destroy --force
```

Expand Down Expand Up @@ -319,40 +320,64 @@ sprite console -o myorg -s mysprite

### `sprite checkpoint create`

Error: sprite name required: use -s flag or create a .sprite file
Create a new checkpoint

```bash
sprite checkpoint create
```

**Options:**
- `-c, --comment <string>` - Optional comment to describe this checkpoint
- `-h, --help` - Show help for this command

### `sprite checkpoint list`

Error: sprite name required: use -s flag or create a .sprite file
List all checkpoints

```bash
sprite checkpoint list
sprite checkpoint list [options]
```

**Aliases:** `sprite checkpoint ls`, `sprite checkpoints ls`

**Options:**
- `-h, --help` - Show help for this command
- `-h, --history <string>` - Filter by history version Include auto-generated checkpoints

### `sprite checkpoint info`

Error: sprite name required: use -s flag or create a .sprite file
Show information about a specific checkpoint

```bash
sprite checkpoint info <version-id>
```

**Options:**
- `-h, --help` - Show help for this command

**Examples:**
```bash
sprite checkpoint info
sprite checkpoint info v2
```

### `sprite checkpoint delete`

Error: sprite name required: use -s flag or create a .sprite file
Delete a checkpoint (soft delete)

```bash
sprite checkpoint delete
sprite checkpoint delete <version-id>
```

**Aliases:** `sprite checkpoint rm`

**Options:**
- `-h, --help` - Show help for this command

**Examples:**
```bash
sprite checkpoint delete v3
```

### `sprite restore`

Restore from a checkpoint version
Expand Down