Skip to content

Commit

Permalink
First draft of update to CLI doc (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Mitchell authored Mar 8, 2023
1 parent cc50fc3 commit 368646d
Showing 1 changed file with 33 additions and 3 deletions.
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.


0 comments on commit 368646d

Please sign in to comment.