Skip to content

Releases: staticbackendhq/cli

Release v1.7.1

Choose a tag to compare

@github-actions github-actions released this 16 May 21:49

StaticBackend CLI v1.7.1

This release adds a few day-to-day CLI commands and refreshes the generated
client-library reference files.

New commands

  • Added backend function run <name> for running server-side functions from the CLI.
  • Function runs can receive JSON with --data or --data-file.
  • Function runs can use the configured root token with --use-root-token.
  • When a root token is available, function run prints the latest run output by default. Use --output=false to skip it.
  • Added backend users commands for listing, adding, and deleting application users.

Client library references

  • Added backend llm to write StaticBackend client-library reference files into the current directory.
  • Added JavaScript and Go client references.
  • Added Node.js server-client support via backend llm node, which writes sb-node.md.
  • Updated the generated references to cover more of the client APIs.

CLI behavior

  • backend db, backend account, and backend users now show their command help when run without a subcommand.
  • The config filename convention is now backend.yml.
  • Removed colored output from commands, which makes logs and copied terminal output easier to read.

Dependencies

  • Updated github.com/staticbackendhq/backend-go to v1.7.0.
  • Updated Cobra and several transitive dependencies.

Install

npm install -g @staticbackend/cli

Notes

If you already have a local config file using the old naming convention, rename it to backend.yml before relying on commands that read saved credentials.

Release v1.7.0

Choose a tag to compare

@github-actions github-actions released this 16 May 16:27

What's Changed

See the full changelog

Installation

npm install -g @staticbackend/cli

Release v1.6.1

Choose a tag to compare

@github-actions github-actions released this 06 Feb 21:25

What's Changed

See the full changelog

Installation

npm install -g @staticbackend/cli

Release v1.6.0-test2

Choose a tag to compare

@github-actions github-actions released this 06 Feb 20:57
trying to fix GH action issues

v1.5.0

Choose a tag to compare

@dstpierre dstpierre released this 14 Jun 13:42

New flag to persist data when doing local development:

$ backend server --persist-data

Bundles all the new feature of StaticBackend's v1.5.0.

v1.4.3

Choose a tag to compare

@dstpierre dstpierre released this 18 Dec 13:51
  • Added web admin UI when serving local dev server
  • Improved login flow with the backend login --dev for automatic development config creation
  • Fix a bug with the backend db create command.

v1.4.2

Choose a tag to compare

@dstpierre dstpierre released this 04 Sep 13:23

Update includes core@v1.4.0's new feature and bud fixes.

Also, a special dev mode root token is now enabled by default removing the need to constantly update the dynamic root token at each stop/start of the CLI.

Use safe-to-use-in-dev-root-token and it will resolve the the current root token.

StaticBackend CLI v1.4.0

Choose a tag to compare

@dstpierre dstpierre released this 05 Jun 17:20

This release includes a full development server. The server is the same as the production one from the core package.

It uses volatile / in-memory data, so data is not persisting over restart. But all functionalities of the real backend is available from this simple local binary making it a great option to build quick prototype.

StaticBackend CLI v1.0.1

Choose a tag to compare

@dstpierre dstpierre released this 23 Aug 07:30

This update introduced the function command.

To create a server-side function you use the following command

$> backend function add --name daily_trial_process --trigger daily_trials --source ./path/to/func.js

The following commands are available:

StaticBackend CLI v1.0.0

Choose a tag to compare

@dstpierre dstpierre released this 23 Jan 11:28

This release contains the v1 feature-complete for the local development server. Fixes and improvements will be added, but there will not have any breaking changes for this major version.

  • Added real-time component via Server-Sent Events.