cargo-shuttle(1) | General Commands Manual | cargo-shuttle(1) |
NAME
cargo-shuttle - A cargo command for the Shuttle platform (https://www.shuttle.rs/)
SYNOPSIS
cargo-shuttle [--working-directory] [--name] [--api-url] [--offline] [--debug] [-h|--help] [-V|--version] [dummy] <subcommands>
DESCRIPTION
A cargo command for the Shuttle platform (https://www.shuttle.rs/)
See the CLI docs (https://docs.shuttle.rs/getting-started/shuttle-commands) for more information.
OPTIONS
- --working-directory=WORKING_DIRECTORY [default: .]
- Specify the working directory
- --name=NAME_OR_ID
- Specify the name or id of the project (overrides crate name)
- --api-url=API_URL
- URL for the Shuttle API to target (mainly for development)
- --offline
- Disable network requests that are not strictly necessary. Limits some features
- --debug
- Turn on tracing output for Shuttle libraries. (WARNING: can print sensitive data)
- -h, --help
- Print help (see a summary with '-h')
- -V, --version
- Print version
SUBCOMMANDS
- cargo-shuttle-init(1)
- Generate a Shuttle project from a template
- cargo-shuttle-run(1)
- Run a project locally
- cargo-shuttle-deploy(1)
- Deploy a project
- cargo-shuttle-deployment(1)
- Manage deployments
- cargo-shuttle-status(1)
- View the status of a Shuttle service
- cargo-shuttle-stop(1)
- Stop a Shuttle service
- cargo-shuttle-logs(1)
- View build and deployment logs
- cargo-shuttle-project(1)
- Manage Shuttle projects
- cargo-shuttle-resource(1)
- Manage resources
- cargo-shuttle-certificate(1)
- Manage SSL certificates for custom domains
- cargo-shuttle-clean(1)
- Remove cargo build artifacts in the Shuttle environment
- cargo-shuttle-account(1)
- Show info about your Shuttle account
- cargo-shuttle-login(1)
- Log in to the Shuttle platform
- cargo-shuttle-logout(1)
- Log out of the Shuttle platform
- cargo-shuttle-generate(1)
- Generate shell completions and man page
- cargo-shuttle-feedback(1)
- Open an issue on GitHub and provide feedback
- cargo-shuttle-upgrade(1)
- Upgrade the cargo-shuttle binary
- cargo-shuttle-help(1)
- Print this message or the help of the given subcommand(s)
VERSION
v0.48.3
NAME
init - Generate a Shuttle project from a template
SYNOPSIS
init [-t|--template] [--from] [--subfolder] [--force-name] [--create-env] [--no-git] [--api-key] [-h|--help] [PATH]
DESCRIPTION
Generate a Shuttle project from a template
OPTIONS
- -t, --template=TEMPLATE
- Clone a starter template from Shuttle's official examples
Possible values:
- axum: Axum - Modular web framework from the Tokio ecosystem
- actix-web: Actix Web - Powerful and fast web framework
- rocket: Rocket - Simple and easy-to-use web framework
- loco: Loco - Batteries included web framework based on Axum
- salvo: Salvo - Powerful and simple web framework
- poem: Poem - Full-featured and easy-to-use web framework
- poise: Poise - Discord Bot framework with good slash command support
- serenity: Serenity - Discord Bot framework
- tower: Tower - Modular service library
- thruster: Thruster - Web framework
- tide: Tide - Web framework
- warp: Warp - Web framework
- none: No template - Make a custom service
- --from=FROM
- Clone a template from a git repository or local path using cargo-generate
- --subfolder=SUBFOLDER
- Path to the template in the source (used with --from)
- --force-name
- Don't check the project name's validity or availability and use it anyways
- --create-env
- Whether to start the container for this project on Shuttle, and claim the project name
- --no-git
- Don't initialize a new git repository
- --api-key=API_KEY
- API key for the Shuttle platform
- -h, --help
- Print help (see a summary with '-h')
- [PATH] [default: .]
- Path where to place the new Shuttle project
NAME
run - Run a project locally
SYNOPSIS
run [-p|--port] [--external] [-r|--release] [--raw] [--secrets] [-h|--help]
DESCRIPTION
Run a project locally
OPTIONS
- -p, --port=PORT [default: 8000]
- Port to start service on
- --external
- Use 0.0.0.0 instead of localhost (for usage with local external devices)
- -r, --release
- Use release mode for building the project
- --raw
- Don't display timestamps and log origin tags
- --secrets=SECRETS
- Use this secrets file instead
- -h, --help
- Print help
NAME
deploy - Deploy a project
SYNOPSIS
deploy [--no-follow] [--allow-dirty] [--no-test] [--raw] [--output-archive] [--secrets] [-h|--help]
DESCRIPTION
Deploy a project
OPTIONS
- --no-follow
- Don't follow the deployment status, exit after the deployment begins
- --allow-dirty
- Allow deployment with uncommitted files
- --no-test
- Don't run pre-deploy tests
- --raw
- Don't display timestamps and log origin tags
- --output-archive=OUTPUT_ARCHIVE
- Output the deployment archive to a file instead of sending a deployment request
- --secrets=SECRETS
- Use this secrets file instead
- -h, --help
- Print help
NAME
deployment - Manage deployments
SYNOPSIS
deployment [-h|--help] <subcommands>
DESCRIPTION
Manage deployments
OPTIONS
- -h, --help
- Print help
SUBCOMMANDS
- deployment-list(1)
- List the deployments for a service
- deployment-status(1)
- View status of a deployment
- deployment-stop(1)
- Stop running deployment(s)
- deployment-help(1)
- Print this message or the help of the given subcommand(s)
NAME
list - List the deployments for a service
SYNOPSIS
list [--page] [--limit] [--raw] [-h|--help]
DESCRIPTION
List the deployments for a service
OPTIONS
- --page=PAGE [default: 1]
- Which page to display
- --limit=LIMIT [default: 10]
- How many deployments per page to display
- --raw
- Output tables without borders
- -h, --help
- Print help
NAME
status - View status of a deployment
SYNOPSIS
status [-h|--help] [ID]
DESCRIPTION
View status of a deployment
OPTIONS
- -h, --help
- Print help
- [ID]
- ID of deployment to get status for
NAME
stop - Stop running deployment(s)
SYNOPSIS
stop [-h|--help]
DESCRIPTION
Stop running deployment(s)
OPTIONS
- -h, --help
- Print help
NAME
status - View the status of a Shuttle service
SYNOPSIS
status [-h|--help]
DESCRIPTION
View the status of a Shuttle service
OPTIONS
- -h, --help
- Print help
NAME
stop - Stop a Shuttle service
SYNOPSIS
stop [-h|--help]
DESCRIPTION
Stop a Shuttle service
OPTIONS
- -h, --help
- Print help
NAME
logs - View build and deployment logs
SYNOPSIS
logs [-l|--latest] [-f|--follow] [--raw] [--head] [--tail] [--all] [--all-deployments] [-h|--help] [ID]
DESCRIPTION
View build and deployment logs
OPTIONS
- -l, --latest
- View logs from the most recent deployment (which is not always the latest running one)
- -f, --follow
- Follow log output
- --raw
- Don't display timestamps and log origin tags
- --head=HEAD
- View the first N log lines
- --tail=TAIL
- View the last N log lines
- --all
- View all log lines
- --all-deployments
- Get logs from all deployments instead of one deployment
- -h, --help
- Print help
- [ID]
- Deployment ID to get logs for. Defaults to the current deployment
NAME
project - Manage Shuttle projects
SYNOPSIS
project [-h|--help] <subcommands>
DESCRIPTION
Manage Shuttle projects
OPTIONS
- -h, --help
- Print help
SUBCOMMANDS
- project-start(1)
- Create an environment for this project on Shuttle
- project-status(1)
- Check the status of this project's environment on Shuttle
- project-stop(1)
- Destroy this project's environment (container) on Shuttle
- project-restart(1)
- Destroy and create an environment for this project on Shuttle
- project-list(1)
- List all projects you have access to
- project-delete(1)
- Delete a project and all linked data
- project-link(1)
- Link this workspace to a Shuttle project
- project-help(1)
- Print this message or the help of the given subcommand(s)
NAME
start - Create an environment for this project on Shuttle
SYNOPSIS
start [--idle-minutes] [-h|--help]
DESCRIPTION
Create an environment for this project on Shuttle
OPTIONS
- --idle-minutes=IDLE_MINUTES [default: 30]
- How long to wait before putting the project in an idle state due to inactivity. 0 means the project will never idle
- -h, --help
- Print help
NAME
status - Check the status of this project's environment on Shuttle
SYNOPSIS
status [-f|--follow] [-h|--help]
DESCRIPTION
Check the status of this project's environment on Shuttle
OPTIONS
- -f, --follow
- Follow status of project
- -h, --help
- Print help
NAME
stop - Destroy this project's environment (container) on Shuttle
SYNOPSIS
stop [-h|--help]
DESCRIPTION
Destroy this project's environment (container) on Shuttle
OPTIONS
- -h, --help
- Print help
NAME
restart - Destroy and create an environment for this project on Shuttle
SYNOPSIS
restart [--idle-minutes] [-h|--help]
DESCRIPTION
Destroy and create an environment for this project on Shuttle
OPTIONS
- --idle-minutes=IDLE_MINUTES [default: 30]
- How long to wait before putting the project in an idle state due to inactivity. 0 means the project will never idle
- -h, --help
- Print help
NAME
list - List all projects you have access to
SYNOPSIS
list [--raw] [-h|--help]
DESCRIPTION
List all projects you have access to
OPTIONS
- --raw
- Output tables without borders
- -h, --help
- Print help
NAME
delete - Delete a project and all linked data
SYNOPSIS
delete [-y|--yes] [-h|--help]
DESCRIPTION
Delete a project and all linked data
OPTIONS
- -y, --yes
- Skip confirmations and proceed
- -h, --help
- Print help
NAME
link - Link this workspace to a Shuttle project
SYNOPSIS
link [-h|--help]
DESCRIPTION
Link this workspace to a Shuttle project
OPTIONS
- -h, --help
- Print help
NAME
resource - Manage resources
SYNOPSIS
resource [-h|--help] <subcommands>
DESCRIPTION
Manage resources
OPTIONS
- -h, --help
- Print help
SUBCOMMANDS
- resource-list(1)
- List the resources for a project
- resource-delete(1)
- Delete a resource
- resource-help(1)
- Print this message or the help of the given subcommand(s)
NAME
list - List the resources for a project
SYNOPSIS
list [--raw] [--show-secrets] [-h|--help]
DESCRIPTION
List the resources for a project
OPTIONS
- --raw
- Output tables without borders
- --show-secrets
- Show secrets from resources (e.g. a password in a connection string)
- -h, --help
- Print help
NAME
delete - Delete a resource
SYNOPSIS
delete [-y|--yes] [-h|--help] <RESOURCE_TYPE>
DESCRIPTION
Delete a resource
OPTIONS
- -y, --yes
- Skip confirmations and proceed
- -h, --help
- Print help
- <RESOURCE_TYPE>
- Type of the resource to delete. Use the string in the 'Type' column as displayed in the `resource list` command. For example, 'database::shared::postgres'
NAME
certificate - Manage SSL certificates for custom domains
SYNOPSIS
certificate [-h|--help] <subcommands>
DESCRIPTION
Manage SSL certificates for custom domains
OPTIONS
- -h, --help
- Print help
SUBCOMMANDS
- certificate-add(1)
- Add an SSL certificate for a custom domain
- certificate-list(1)
- List the certificates for a project
- certificate-delete(1)
- Delete an SSL certificate
- certificate-help(1)
- Print this message or the help of the given subcommand(s)
NAME
add - Add an SSL certificate for a custom domain
SYNOPSIS
add [-h|--help] <DOMAIN>
DESCRIPTION
Add an SSL certificate for a custom domain
OPTIONS
- -h, --help
- Print help
- <DOMAIN>
- Domain name
NAME
list - List the certificates for a project
SYNOPSIS
list [--raw] [-h|--help]
DESCRIPTION
List the certificates for a project
OPTIONS
- --raw
- Output tables without borders
- -h, --help
- Print help
NAME
delete - Delete an SSL certificate
SYNOPSIS
delete [-y|--yes] [-h|--help] <DOMAIN>
DESCRIPTION
Delete an SSL certificate
OPTIONS
- -y, --yes
- Skip confirmations and proceed
- -h, --help
- Print help
- <DOMAIN>
- Domain name
NAME
clean - Remove cargo build artifacts in the Shuttle environment
SYNOPSIS
clean [-h|--help]
DESCRIPTION
Remove cargo build artifacts in the Shuttle environment
OPTIONS
- -h, --help
- Print help
NAME
account - Show info about your Shuttle account
SYNOPSIS
account [-h|--help]
DESCRIPTION
Show info about your Shuttle account
OPTIONS
- -h, --help
- Print help
NAME
login - Log in to the Shuttle platform
SYNOPSIS
login [--api-key] [-h|--help]
DESCRIPTION
Log in to the Shuttle platform
OPTIONS
- --api-key=API_KEY
- API key for the Shuttle platform
- -h, --help
- Print help
NAME
logout - Log out of the Shuttle platform
SYNOPSIS
logout [--reset-api-key] [-h|--help]
DESCRIPTION
Log out of the Shuttle platform
OPTIONS
- --reset-api-key
- Reset the API key before logging out
- -h, --help
- Print help
NAME
generate - Generate shell completions and man page
SYNOPSIS
generate [-h|--help] <subcommands>
DESCRIPTION
Generate shell completions and man page
OPTIONS
- -h, --help
- Print help
SUBCOMMANDS
- generate-shell(1)
- Generate shell completions
- generate-manpage(1)
- Generate man page to the standard output
- generate-help(1)
- Print this message or the help of the given subcommand(s)
NAME
shell - Generate shell completions
SYNOPSIS
shell [-o|--output] [-h|--help] <SHELL>
DESCRIPTION
Generate shell completions
OPTIONS
- -o, --output=OUTPUT
- Output to a file (stdout by default)
- -h, --help
- Print help
- <SHELL>
- The shell to generate shell completion for
[possible values: bash, elvish, fish, powershell, zsh]
NAME
manpage - Generate man page to the standard output
SYNOPSIS
manpage [-h|--help]
DESCRIPTION
Generate man page to the standard output
OPTIONS
- -h, --help
- Print help
NAME
feedback - Open an issue on GitHub and provide feedback
SYNOPSIS
feedback [-h|--help]
DESCRIPTION
Open an issue on GitHub and provide feedback
OPTIONS
- -h, --help
- Print help
NAME
upgrade - Upgrade the cargo-shuttle binary
SYNOPSIS
upgrade [--preview] [-h|--help]
DESCRIPTION
Upgrade the cargo-shuttle binary
OPTIONS
- --preview
- Install an unreleased version from the repository's main branch
- -h, --help
- Print help
cargo-shuttle 0.48.3 |