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

First draft of update to CLI doc #48

Merged
merged 1 commit into from
Mar 8, 2023
Merged
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
36 changes: 33 additions & 3 deletions introduction/shuttle-commands.mdx
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
---
title: "Shuttle CLI Commands"
title: "Command Line Interface"
---

All interaction with the shuttle services goes through our CLI.
To get an overview of available commands, run:
## Overview

All interaction with the shuttle services is through the command line interface (CLI). A combination of commands, and sub-commands, each with options, allow a variety of management tasks to be performed.

Any given command is issued in the format: ```cargo shuttle [OPTIONS] <COMMAND>```

To get an overview of available commands and any available options, run:

```
cargo shuttle help
```

## Options

*Tip: Options are entered in the format: `--name`, as an example.*

Options can be passed in with commands to customize a command's, or a sub-command's, behaviour.

## Commands

*Tip: Run a command with the `--help` flag to see available subcommands*

The core shuttle commands are:

| Command | Explanation |
|---------- |-------------- |
| stop | stop the currently running deployment |
Expand All @@ -28,3 +42,19 @@ cargo shuttle help
| run | run a shuttle service locally |
| secrets | manage secrets for this shuttle service |
| status | view the status of a shuttle service |

## Sub-commands

Several commands have sub-commands which allow more fine grained management tasks. For example, the project command has the following sub-commands:

| Sub-command | Explanation |
| ----------- | ----------- |
| new | create a new project container |
| list | list all projects available to the calling account |
| rm | remove the project environment from shuttle |
| status | show the status of the current environment's project on shuttle |
| help | print a list of available sub-commands or the help of the given sub-command |

Sub-commands may also have options which can be set if desired.