Skip to main content

Shipit CLI is the best way to build, serve and deploy your projects anywhere.

Project description

Shipit

Shipit is a CLI that automatically detects the type of project you are trying to run, builds it and runs it using Starlark definition files (called Shipit).

It can run builds locally, inside Docker, or through Wasmer, and bundles a one-command experience for common frameworks.

Quick Start

To use shipit, you'll need to have uv installed.

Install nothing globally; use uvx shipit-cli to run Shipit from anywhere.

uvx shipit-cli .

Running in auto mode will generate the Shipit file when needed, build the project, and can also run it. Shipit picks the safest builder automatically and falls back to Docker or Wasmer when requested:

  • uvx shipit-cli . --wasmer builds locally and runs inside Wasmer.
  • uvx shipit-cli . --docker builds it with Docker (you can customize the docker client as well, eg: --docker-client depot).
  • uvx shipit-cli . --start launches the app after building.

You can combine them as needed:

uvx shipit-cli . --start --wasmer --skip-prepare

Commands

Default auto mode

Full pipeline in one command. Combine flags such as --regenerate to rewrite the Shipit file. Use --wasmer to run with Wasmer.

generate

uvx shipit-cli generate .

Create or refresh the Shipit file. Override build and run commands with --install-command, --build-command, or --start-command. Pick a exlicit provider with --use-provider.

plan

uvx shipit-cli plan --out plan.json

Evaluate the project and emit config, derived commands, and required services without building. Helpful for CI checks or debugging configuration.

build

uvx shipit-cli build

Run the build steps defined in Shipit. Append --wasmer to execute inside Wasmer, --docker to use Docker builds.

run

uvx shipit-cli run

Run explicit commands for the project. Use --start to run the start command, or pass one or more --command values. Combine with --wasmer for WebAssembly execution.

deploy

uvx shipit-cli deploy

Deploy a Wasmer package generated by shipit build --wasmer. Use --wasmer-deploy-config to write deployment metadata instead of publishing.

Supported Technologies

Shipit works with three execution environments:

  • Local builder for fast, host-native builds.
  • Docker builder when container isolation is required.
  • Wasmer runner for portable WebAssembly packaging and deployment.

Development

Clone the repository and use the uv project environment.

uv run shipit . --start

Use any other subcommand during development by prefixing with uv run shipit, for example uv run shipit build . --wasmer. This keeps changes local while matching the published CLI behaviour.

Tests

Run the test suite with:

uv run pytest

You can run the e2e tests in parallel (-n 8) with:

uv run pytest -m e2e -v "tests/test_e2e.py" -s -n 8

The e2e tests will:

  • Build the project (locally, or with docker)
  • Run the project (locally or with Wasmer)
  • Test that the project output (via http requests) is the correct one

Automatic PyPI Publish

Publishing to PyPI is automated with GitHub Actions on version tags.

Requirements:

  • Add a repository secret named PYPI_API_TOKEN with a PyPI API token.
  • Push tags using the vX.Y.Z format (for example: v0.17.5).

On each v* tag push, the workflow:

  • Runs regular test and e2e workflows.
  • Validates that the tag version without the leading v matches:
    • project.version in pyproject.toml
    • version in src/shipit/version.py
  • Builds the package and publishes to PyPI only if all checks pass.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shipit_cli-0.19.4.tar.gz (58.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shipit_cli-0.19.4-py3-none-any.whl (61.3 kB view details)

Uploaded Python 3

File details

Details for the file shipit_cli-0.19.4.tar.gz.

File metadata

  • Download URL: shipit_cli-0.19.4.tar.gz
  • Upload date:
  • Size: 58.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shipit_cli-0.19.4.tar.gz
Algorithm Hash digest
SHA256 555e8cc0f070f8ff20a12e7bb90bc19af8acb60c70574c84db8c4ad1510682c9
MD5 4e818eccf1142c65329bcfd9fe116571
BLAKE2b-256 ce1d195180a9fe1fd9f0306525d4328143cab443f326a767de13e5b3eaa2b572

See more details on using hashes here.

File details

Details for the file shipit_cli-0.19.4-py3-none-any.whl.

File metadata

  • Download URL: shipit_cli-0.19.4-py3-none-any.whl
  • Upload date:
  • Size: 61.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shipit_cli-0.19.4-py3-none-any.whl
Algorithm Hash digest
SHA256 86df91b0f0527661e0099146f8d88319a8309413994df6d425c5c867ea66f8ce
MD5 b27e1f3d6c7b7045966bf9a1fc124f71
BLAKE2b-256 669d019f2bbbca65c2bc2df7f5a30e195cfeb21408e418f72b99458142c89a86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page