Skip to main content

Orrin CLI

Project description

Orrin CLI

The Orrin CLI enables users to perform the actions required to deploy a standalone app to Orrin Apps.

It is the standard tool for packaging UI bundles (ZIP files), uploading them to the server for review, and checking the status of the review process for both the frontend and backend.

The CLI

The CLI currently consists of two main commands:

Command Purpose
config Manages configuration, including setting or revoking your Developer API key.
ui Handles UI-related activities, including building and uploading the deployment ZIP file.

Each command has specific subcommands detailed below.

Subcommands for config

Command Purpose
configure-dev-api Configures your Developer API key within the Orrin CLI.
revoke-config Removes your currently configured Developer API key.
show-configuration Displays the Developer API key currently configured.

Configuration of Developer API

Configuring your developer API key is the recommended first step. While not strictly required to install the CLI, the key is required to perform any deployment actions.

To configure your key, run:

orrin config configure-dev-api

Revoking Configuration

If you need to remove the currently configured Developer API key, run:

orrin config revoke-config

This effectively removes the stored key. You can reconfigure a new key at any time.

Showing the Configuration

If you have forgotten your developer API key, run:

orrin config show-configuration

This will print the stored Developer API key. As the Orrin CLI matures, this command will likely display additional developer metadata.

Subcommands for ui

Command Purpose
generate-zip Runs at the root of the Next.js codebase. It builds the project, exports static contents, and zips them for upload.
upload Sends the generated ZIP file to the server, adding it to the "STAGING" queue to await review.

Generating ZIP File

To upload your UI for review and deployment, you must package the static contents of your codebase into a ZIP file.

From the root of your Next.js codebase, run:

orrin ui generate-zip

This performs a build and generates the required ZIP file.

NOTE: Ensure your next.config.ts contains the following configuration. Without this, the ZIP creation may fail:

import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
  output: 'export',
  trailingSlash: true,
  basePath: '/<your_app_name>/current',
  reactStrictMode: true,
};

export default nextConfig;

Uploading the UI

When you are ready, you can upload the UI to the server. This submits it to a "STAGING" queue, meaning it is awaiting review/approval.

Run the following command to upload:

orrin ui upload --app <AppName>

Important Requirements:

  • Backend First: <AppName> must match the app name found in your backend configuration. An app is only created after the backend is submitted. If you attempt to submit the frontend before the backend, this command will fail with a "no app found" error.
  • App Linking: Inherently, the UI code is not "attached" to an app. Passing --app allows the server to link the uploaded UI to the specific app record.

The Review Process

  • Overrides: If you upload a new codebase using an existing app name, it will override the previous codebase and trigger a new review.
  • Updates: A review is required for every upload before the UI can be hosted. If an app is already live and you submit an update, the old version persists until the new one is approved. Once approved, the new version takes over and the old version is cached.

Project details


Download files

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

Source Distribution

orrin_cli-0.1.5.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

orrin_cli-0.1.5-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file orrin_cli-0.1.5.tar.gz.

File metadata

  • Download URL: orrin_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for orrin_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f1e797adc11e11c7327bf93420ba402941d2439fe1d340888cc03098b3889f19
MD5 cafd0dc8ec966a2bb2d8ed775dc767f2
BLAKE2b-256 6a59c78166a7f908f4301eb1311089b20a25e54ab9ad95382b041262004dd803

See more details on using hashes here.

File details

Details for the file orrin_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: orrin_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for orrin_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d2278de405bcc31d37a66d8926637009d06483aba878bc76ae05d865e2661467
MD5 c71c4d1fc668c49769886f52cc97e32e
BLAKE2b-256 20569446befcb065bd083e225385f6d439890c9c58e2e2df737dfbb7dc87f25b

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