Skip to content

Commit

Permalink
Merge pull request #117 from OldSneerJaw/release-1.4.0
Browse files Browse the repository at this point in the history
Preparation for 1.4.0 release
  • Loading branch information
OldSneerJaw authored Mar 7, 2023
2 parents 68480bf + 1074b5d commit 4e327ae
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/). All notable changes will be documented in this file.

## [Unreleased](https://github.com/OldSneerJaw/borealis-pg-cli/compare/v1.3.0...HEAD)
## [1.4.0](https://github.com/OldSneerJaw/borealis-pg-cli/compare/v1.3.0...v1.4.0)
- Adds the `borealis-pg:restore:capabilities` command to retrieve an add-on's database restore capabilities
- Adds the `borealis-pg:restore:execute` command to perform an add-on database restore/clone
- Include the name of the source add-on for an add-on that was restored/cloned in `borealis-pg:info` output
Expand Down
95 changes: 82 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ $ heroku plugins:install borealis-pg-cli
* [`heroku borealis-pg:integrations:register SSH_PUBLIC_KEY`](#heroku-borealis-pgintegrationsregister-ssh_public_key)
* [`heroku borealis-pg:integrations:remove`](#heroku-borealis-pgintegrationsremove)
* [`heroku borealis-pg:psql`](#heroku-borealis-pgpsql)
* [`heroku borealis-pg:restore:capabilities`](#heroku-borealis-pgrestorecapabilities)
* [`heroku borealis-pg:restore:execute`](#heroku-borealis-pgrestoreexecute)
* [`heroku borealis-pg:run`](#heroku-borealis-pgrun)
* [`heroku borealis-pg:tunnel`](#heroku-borealis-pgtunnel)
* [`heroku borealis-pg:users`](#heroku-borealis-pgusers)
Expand All @@ -49,7 +51,7 @@ OPTIONS
-o, --addon=addon name or ID of an add-on or one of its attachments
```

_See code: [src/commands/borealis-pg/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/index.ts)_
_See code: [src/commands/borealis-pg/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/index.ts)_

## `heroku borealis-pg:extensions`

Expand All @@ -64,7 +66,7 @@ OPTIONS
-o, --addon=addon name or ID of an add-on or one of its attachments
```

_See code: [src/commands/borealis-pg/extensions/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/extensions/index.ts)_
_See code: [src/commands/borealis-pg/extensions/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/extensions/index.ts)_

## `heroku borealis-pg:extensions:install PG_EXTENSION`

Expand Down Expand Up @@ -100,7 +102,7 @@ EXAMPLES
$ heroku borealis-pg:extensions:install --suppress-conflict --addon borealis-pg-hex-12345 pg_trgm
```

_See code: [src/commands/borealis-pg/extensions/install.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/extensions/install.ts)_
_See code: [src/commands/borealis-pg/extensions/install.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/extensions/install.ts)_

## `heroku borealis-pg:extensions:remove PG_EXTENSION`

Expand All @@ -125,7 +127,7 @@ EXAMPLES
$ heroku borealis-pg:extensions:remove --confirm uuid-ossp --addon borealis-pg-hex-12345 uuid-ossp
```

_See code: [src/commands/borealis-pg/extensions/remove.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/extensions/remove.ts)_
_See code: [src/commands/borealis-pg/extensions/remove.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/extensions/remove.ts)_

## `heroku borealis-pg:info`

Expand All @@ -140,7 +142,7 @@ OPTIONS
-o, --addon=addon name or ID of an add-on or one of its attachments
```

_See code: [src/commands/borealis-pg/info.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/info.ts)_
_See code: [src/commands/borealis-pg/info.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/info.ts)_

## `heroku borealis-pg:integrations`

Expand All @@ -159,7 +161,7 @@ DESCRIPTION
via a secure tunnel using semi-permanent SSH server and database credentials.
```

_See code: [src/commands/borealis-pg/integrations/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/integrations/index.ts)_
_See code: [src/commands/borealis-pg/integrations/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/integrations/index.ts)_

## `heroku borealis-pg:integrations:register SSH_PUBLIC_KEY`

Expand Down Expand Up @@ -205,7 +207,7 @@ EXAMPLES
$ heroku borealis-pg:integrations:register --write-access --app sushi --name my_integration2 ssh-rsa SSHPUBLICKEY2===
```

_See code: [src/commands/borealis-pg/integrations/register.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/integrations/register.ts)_
_See code: [src/commands/borealis-pg/integrations/register.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/integrations/register.ts)_

## `heroku borealis-pg:integrations:remove`

Expand All @@ -229,7 +231,7 @@ EXAMPLES
$ heroku borealis-pg:integrations:remove --confirm my_integration2 --app sushi --name my_integration2
```

_See code: [src/commands/borealis-pg/integrations/remove.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/integrations/remove.ts)_
_See code: [src/commands/borealis-pg/integrations/remove.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/integrations/remove.ts)_

## `heroku borealis-pg:psql`

Expand Down Expand Up @@ -275,7 +277,70 @@ EXAMPLES
$ heroku borealis-pg:psql --addon borealis-pg-hex-12345
```

_See code: [src/commands/borealis-pg/psql.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/psql.ts)_
_See code: [src/commands/borealis-pg/psql.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/psql.ts)_

## `heroku borealis-pg:restore:capabilities`

shows the restore capabilities of a Borealis Isolated Postgres add-on database

```
USAGE
$ heroku borealis-pg:restore:capabilities
OPTIONS
-a, --app=app app to which the add-on is attached
-o, --addon=addon name or ID of an add-on or one of its attachments
DESCRIPTION
Single tenant add-on databases may be restored to an earlier point in time or
cloned. This operation outputs the earliest and latest points in time to which
the add-on database may be restored. Note that, when an add-on database is
cloned, it will produce a physical copy as at the current time, regardless of
the add-on's reported latest restorable time.
See the borealis-pg:restore:execute command to perform a restore/clone.
ALIASES
$ heroku borealis-pg:restore:info
```

_See code: [src/commands/borealis-pg/restore/capabilities.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/restore/capabilities.ts)_

## `heroku borealis-pg:restore:execute`

restores or clones a Borealis Isolated Postgres add-on database

```
USAGE
$ heroku borealis-pg:restore:execute
OPTIONS
-a, --app=app app to which the source add-on is attached
-d, --destination-app=destination-app [default: source add-on app] app to attach the new add-on to
-n, --new-plan=new-plan [default: source add-on plan] add-on plan to apply to the new add-on
-o, --addon=addon name or ID of the source add-on or one of its attachments
-t, --restore-to-time=restore-to-time [default: now] date/time (in ISO 8601 format) to restore to
--as=as name to assign to the new add-on attachment
--wait wait until the add-on has finished before exiting
DESCRIPTION
Single tenant add-on databases may be restored to an earlier point in time or
cloned. This operation restores/clones the add-on database into a brand new
add-on database, leaving the original add-on database unaffected. Note that,
when an add-on database is cloned (that is, the --restore-to-time option is
omitted), it will produce a physical copy as at the current time, regardless
of the add-on's reported latest restorable time.
See the borealis-pg:restore:capabilities command to determine the earliest and
latest restorable times of an add-on.
EXAMPLES
$ heroku borealis-pg:restore:execute --app sushi --addon SOURCE_DB --as CLONED_DB
$ heroku borealis-pg:restore:execute --app sushi --restore-to-time 2023-02-24T18:42:00-08:00
$ heroku borealis-pg:restore:execute --app sushi --destination-app my-other-app --new-plan x2-s100-p2-r8
```

_See code: [src/commands/borealis-pg/restore/execute.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/restore/execute.ts)_

## `heroku borealis-pg:run`

Expand Down Expand Up @@ -347,7 +412,7 @@ EXAMPLES
$ heroku borealis-pg:run --addon borealis-pg-hex-12345 --shell-cmd './manage.py migrate' --write-access
```

_See code: [src/commands/borealis-pg/run.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/run.ts)_
_See code: [src/commands/borealis-pg/run.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/run.ts)_

## `heroku borealis-pg:tunnel`

Expand Down Expand Up @@ -389,7 +454,7 @@ EXAMPLES
$ heroku borealis-pg:tunnel --addon borealis-pg-hex-12345 --write-access
```

_See code: [src/commands/borealis-pg/tunnel.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/tunnel.ts)_
_See code: [src/commands/borealis-pg/tunnel.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/tunnel.ts)_

## `heroku borealis-pg:users`

Expand All @@ -415,7 +480,7 @@ DESCRIPTION
borealis-pg:users:reset command).
```

_See code: [src/commands/borealis-pg/users/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/users/index.ts)_
_See code: [src/commands/borealis-pg/users/index.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/users/index.ts)_

## `heroku borealis-pg:users:reset`

Expand Down Expand Up @@ -446,7 +511,11 @@ DESCRIPTION
automatically reactivated when the affected user runs one of the
borealis-pg:psql or borealis-pg:tunnel commands (or borealis-pg:run with the
--personal-user option).
Add-on data integrations are unaffected by this operation. To revoke database
credentials assigned to a data integration, use the
borealis-pg:integrations:revoke command.
```

_See code: [src/commands/borealis-pg/users/reset.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.3.0/src/commands/borealis-pg/users/reset.ts)_
_See code: [src/commands/borealis-pg/users/reset.ts](https://github.com/OldSneerJaw/borealis-pg-cli/blob/v1.4.0/src/commands/borealis-pg/users/reset.ts)_
<!-- commandsstop -->
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "borealis-pg-cli",
"description": "CLI for advanced interactions with Borealis Isolated Postgres add-ons",
"version": "1.3.0",
"version": "1.4.0",
"author": "Boreal Information Systems Inc.",
"bugs": "https://github.com/OldSneerJaw/borealis-pg-cli/issues",
"dependencies": {
Expand Down

0 comments on commit 4e327ae

Please sign in to comment.