Releases: phpcr/phpcr-shell
Beta 4
Bug fixes
- [query] Enforce termination of queries with ";": fixes #162
- [node:list] Single references not showing path
- [node:edit] Multivalue references encoded as arrays when editing
- [node:edit] Fixed undefined variable
- [version] Versioning commands can use relative paths
- [node:property:show] Text fields are truncated
- [profile] Workspace given from CLI does not override profile workspace
- [command] Removed node:definition command: Jackalope now supports this, and
this command would never have worked, see: #172
Beta 3
Features
- [profile:show] Added command to display current profile
- [query:update] Introduced
expr()
function to allow setting poperty values using expression language. - [node:list] Sort properties by default, added option to specify
Bug fixes
- [embedded] No exit code returned
- [profile] Profile configuration overwritten by session parameters
- [node:list] Incorrect node count
Beta 2
Features
- [profile:show] Added command to display current profile
Bug fixes
- [embedded] No exit code returned
- [profile] Profile configuration overwritten by session parameters
- [node:list] Incorrect node count
Beta 1
BC Break
- [DoctrinePhpcrBundle] Shell must now be initiated in a different way in
embedded mode. The DoctrinePhpcrBundle will need to be updated. - [node:shared:remove] Removed this command and integrated it into
node:remove
instead (node:remove . --shared
)
Bug fixes
- [capability] Commands not being disabled based on capability
- [config] Do not override CLI options with profile options
- [node:remove] Cannot
node:remove
by UUID - [node:edit] Serialization of single value references doesn't work
- [file:import] Irregular files are accepted
- [query] Possible to try and execute query without a query
Enhancements
- [node:list] Show primary node type and super-types
- [node:list] Show property length
- [autocomplete] Autocomplete now includes command names
- [references] Show UUIDs when listing reference properties
- [import/export] Renamed session import and export to
session:import
&
Features
- [cli] Specify workspace with first argument
- [config] Added user config for general settings
- [config] Enable / disable showing execution times and set decimal expansion
- [global] Refactored to use DI container and various general improvements
- [node:property:set] Allow setting reference property type by path
session:export
- [node:references] Shows the referencing node paths instead of the referrered-to node path(s)
- [node:remove] Immediately fail when trying to delete a node which has a (hard) referrer
- [node] Added wilcard support to applicable node commands, including "node:list", "node:remove" and "node:property:show"
- [query:update] Added APPLY method to queries, permits addition and removal of mixins
- [transport] Added transport layer for experimental Jackalope FS implementation
Alpha 6
Features
- [query] Full support for manipulating multivalue properties via functions.
See http://phpcr.readthedocs.org/en/latest/phpcr-shell/querying.html
Bug fixes
- [mixin] Node mxin remove does not accept a path
- [node:edit] Cannot edit nodes with multivalue References
Enhancements
- [deps] The PHPCR implementations have been moved to require-dev
- [exit] Ask for confirmation before logging out when there are pending changes
Alpha 5
This release features a new command node:edit
which replaces node:property:edit
, and enables the edition (or creation) of a complete node.
It also adds a temporary limitation to the UPDATE command when updating multi-value properties. Before this release updating a multivalue property with more than one element would remove all existing elements. Now we only allow updating single-valued multi-value properties until a better solution is implemented.
Features
- [node:edit] New command
node:edit
enables editing of entire node - [shell] Added "shell:clear" command to support clearing the console output
- [general] The shell supports being embedded as a dependency
Bug Fixes
Alpha 4
Features
- [node] copy,move and clone - Target paths automatically append basename if target is a node.
- [query] Always show path next to resultset
- [node|shell] Most commands which accept a node path can also accept a UUID
- [node]
node:list
: Show node primary item value - [query] Support for UPDATE queries
- [query] Support for DELETE queries
Bugs Fixes
- [args] 28 instances of bad InputArgument constructor fixed
- [node]
node:list
Catch exceptions when rendering property rows (e.g. on invalid references)
Alpha 3
Features
- [file]:
file:import
- New command to import files into the repository. - [node]:
node:list
Added--level
option to rescursively show children nodes and properties. - [node]:
node:list
Show "unulfilled" property and child node definitions when listing node contents.
Improvements
- [export]:
session:export:view
: Added--pretty
option tosession:export:view
command to output formatted XML. - [export]:
session:export:view
: Ask confirmation before overwriting file. - [shell]: Autocomplete completes property names in addition to node names in current path.
Bugs
- [shell]: Aliases do not allow quoted arguments.
- [shell]: Autocomplete causes segfault.
Alpha 2
This release introduces profile support:
Use a profile:
$ phpcrsh --profile myprofile
Create a profile:
$ phpcrsh --transport=doctrine-dbal --db-user=foo --db-pass=bar --phpcr-workspace=baz
Launch profile selector:
$ phpcrsh
No connection parameters, given. Select an existing profile:
(0) dtlweb
(1) jr_test
(2) pocms
Enter profile number:
Pre-Alpha
This is an early release of the current master branch as I am going to start working on a more feature complete and tested branch.
I am intending to do a big rewrite in order to fully implement the PHPCR interface: https://github.com/phpcr/phpcr-shell/wiki/Proposed-API
Until then this is already a nice way to browse the repository, but I take no responsibility for any damage that might be caused with destructive commands.
To install:
wget https://github.com/phpcr/phpcr-shell/releases/download/0.1.0/phpcr.phar
sudo mv phpcr.phar /usr/local/bin/phpcr
sudo chmod a+x /usr/local/bin/phpcr
To connect to doctrine dbal:
$ phpcr --transport=doctrine-dbal --db-name=yourdbname
or with jackrabbit
$ phpcr --transport=jackrabbit