bld

Version, currently 1.1.85100 versions

github.com/buildio/cli

No description declared in shard.yml.

1 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  bld:
    github: buildio/cli
    version: ~> 1.1.85

Then run:

shards install

shard.yml

Crystal
>= 1.16.1
License
MIT
Author
Matthew Chigira
Target
  • bld from src/build_cli.cr

Dependencies

Runtime Dependencies

  • ssh2~> 1.7.2github: spider-gazelle/ssh2.cr
  • netrc*github: usiegj00/crystal-netrc
  • build-client1.1.38github: buildio/sdk-crystal-lang
  • term-spinner*github: crystal-term/spinner, commit: a65ca1a204736393cd701dc0f65af8154cb93912
  • athena-console~> 0.3.5github: athena-framework/console

README

Build CLI

Build

Local Development Build

shards build

Static Linux Binary Build

The repository includes a GitHub Action (.github/workflows/build-linux-binary.yml) that automatically builds a static Linux binary when a version tag is pushed. This action:

  • Purpose: Creates a completely static Linux binary using Alpine Linux for maximum portability
  • Use Cases:
    • Provides an easy-to-use binary for Linux users without Crystal dependencies
    • Serves as a dependency for the Build CLI CNB Buildpack
  • Trigger: Automatically runs when pushing tags like v1.1.6
  • Build Process: Uses Docker with Alpine Linux base image to create a fully static binary with all dependencies compiled in
  • Output: Releases a bld-linux-amd64.zip file containing the static binary

To trigger a new release:

git tag v1.1.7
git push origin v1.1.7

The action will create a GitHub release with the Linux binary attached, which can be downloaded and used on any Linux AMD64 system without requiring any runtime dependencies.

Using a Custom API URL

You can specify a custom API endpoint for the CLI by setting the BUILD_API_URL environment variable. This is useful for development or testing against a local or alternative Build API instance.

The URL should include the scheme (http or https) and the port if necessary.

Example:

To run the CLI against a local server running on http://localhost:3000:

BUILD_API_URL='http://localhost:3000' bld login

When BUILD_API_URL is set, the CLI will direct all API requests to this URL, and it will store a separate entry in your .netrc file for this custom host, ensuring your regular Build credentials are not overwritten.

If BUILD_API_URL is not set, the CLI defaults to https://app.build.io.

Contributors

License

All rights reserved.