Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@box/cli

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@box/cli - npm Package Versions

123

2.3.0

Diff

Changelog

Source

2.3.0 [2019-05-23]

  • Added --confirm flag to the box users:email-aliases:add command to automatically confirm the email alias
  • Added --restrict-to-enterprise flag to the box folders:update command to restrict collaboration on the folder to the owner's enterprise
  • Fixed a bug in the box folders:update command where the --upload-email-access flag would not correctly set the folder upload email access level
mattwiller
published 2.2.0 •

Changelog

Source

2.2.0 [2019-04-30]

  • Added --sort and --direction flags to box search to control the sort order of the search results
  • Fixed box collections:add to work correctly with web_link items
  • Fixed an issue where some commands including box folders:collaborations:add could incorrectly interpret bulk input entries and produce unintended API requests
  • Added box folders:metadata:set and box files:metadata:set commands to apply metadata keys and values, overwriting existing metadata under those keys
  • Errors encountered during bulk input are now caught within the CLI, skipping that entry and continuing bulk input. The CLI should now run all bulk input entries to completion and report entries that produced errors after all entries have been processed.
mattwiller
published 2.1.0 •

Changelog

Source

2.1.0 [2019-03-28]

  • Fixed an issue where the --fields flag was not always requesting additional fields from the API
  • Fixed the --event-types flag for the box events and box events:poll commands
  • Updated tolodash@4.17.11 to address a potential prototype pollution vulnerability
  • Fixed paging in both the box events and box events:poll commands:
    • The box events command now requires either a closed date range (defaults to last five days), or a stream position. If given a date range, all events in that range will be returned. If given a stream position, up to limit events will be returned along with the next stream position
    • box events:poll now correctly polls for new events
mattwiller
published 2.0.0 •

Changelog

Source

2.0.0 [2018-12-13]

Features and Enhancements

  • Full API parity: The new version of the CLI supports all available API endpoints and parameters
  • Recursive folder upload and download: Uploading or downloading a folder now preserves the entire deep folder structure
  • Expanded human-readable output: All object fields returned by the API are now displayed by default, and can be controlled with --fields.  All commands that output collections of objects no longer require interactive key presses to view all objects.
  • More output options for bulk commands: Bulk commands no longer require output to be written to disk, and can output JSON, CSV, or human-readable output directly to stdout or to any file.
  • More flexible date/time input: Date-times can now be specified in UNIX epoch format (e.g. 1535336043), with a year offset shorthand (e.g. -1y for "one year ago"), and as a combination of offset shorthands (e.g. -5h30m for "5 minutes and 30 seconds ago")
  • All commands now accept bulk input: Every command can now accept its arguments and flags from a file input in either CSV or JSON format!  There is also no more need for CSV templates, since the column names are the same as the CLI's own args and flags (case-insensitive).  Looking at the help for a command should tell you everything you need to know to run the command in bulk
  • All commands can now save output to disk: Every command now allows passing the --save and --save-to-file-path flags to save the output to disk.  The output written will respect the --json and --csv flags for specifying output format, otherwise it will use the file format in the CLI settings.
  • Custom API calls: The new box request command allows making any API call against the Box API, and can be used to pass arbitrary URLs and parameters
  • Per-environment token caching enabled by default: To improve performance when running multiple commands, each environment now caches the primary Service Account tokens by default.  This can be disabled by running box configure:environments:update --no-cache-tokens
  • Command correction and autocomplete: If you mis-type a command, you will now be prompted if there is an available correction; selecting "yes" at the prompt will run the corrected command for you.  There is also now a box autocomplete command, which will help you set up autocompletion (currently available only in bash and zsh shells)
  • User-friendly prompts: Some commands (e.g. box configure:environments:select) can now be called without providing the necessary arguments; in this case, the command will display a helpful prompt to allow selecting the argument value.
  • Re-organized command hierarchy: We've renamed and reorganized many of the commands in the CLI to clarify the inputs they take and reduce unnecessary subcommand nesting.  In some cases, this drastically reduces the length of the command.  For example, box files:shared-links:create is now box files:share — 14 characters shorter!  Most commands that were previously available as xyzs:list are now just xyzs; for example, box folders collaborations list is now box folders:collaborations
  • Download commands can download to a specified location on disk: Pass the --destination flag to have the files or folders download to any location

⚠ BREAKING CHANGES

  • The box files:metadata:*, box folders:metadata:*, and box metadata-templates:* command interfaces have changed; please run the commands with --help for more details
  • All box sessions commands have been removed; use box configure:environments:switch-user [USER_ID] to switch between users.
  • All box configure settings subcommands have been removed; these settings can be set by passing the appropriate flag(s) to box configure:settings
  • box files shared-links get [fileID] is replaced by box files:get [fileID] --fields=shared_link (output format differs)
  • box folders shared-links get [folderID] is replaced by box folders:get [folderID] --fields=shared_link (output format differs)
  • box folders change-upload-email [folderID] [access] is replaced by box folders:update [folderID] --upload-email-access=[access] (output format differs)
  • box storage-policies assignments add [userID] [policyID] is replaced by box storage-policies:assign [policyID] [userID] (same functionality, may make more API calls)
  • box storage-policies assignments update [assignmentID] [policyID] is deprecated in favor of box storage-policies:assign [policyID] [userID]
  • box users change-primary-email [userID] [email] is replaced by box users:update [userID] --login=[email] (output format differs)
  • The --list-members flag has been removed from the box groups:membership:list command; this is now the default behavior of the command and does not need to be specified via flag.
  • The --list-groups flag on box groups:membership:list has been removed; this functionality is now found in the box users:groups command.
  • The --list-collaborations flag on box groups:membership:list has been removed; this functionality is now found in the box groups:collaborations command.
  • Multi-word collaboration roles specified via the -r|--role flag in box collaborations:add and similar commands are now separated by an underscore (e.g viewer_uploader) instead of a space.  This should make it easier to work with these commands without needing to quote the flag value.
  • The -y|--yes flag has been removed from some commands; deletions of users, folders, files, etc will no longer prompt to confirm that the item should be deleted.
  • The -m|--multi flag has been removed from box files:download and box folders:download since these commands now accept bulk input via CSV.
  • The --id-only flag has been removed from box folders:move, since a folder move within a user's account should not change the folder ID.
  • The --parent-folder-id flag has been removed from the box folders:update command; users should use box folders:move instead.
  • The --shared-link-* flags have been removed from the box folders:update command; users should use box folders:share instead.
  • The --sync-disable flag on box users:create and box users:update is now called --no-sync-enable
  • The --is-exempt-from-device-limits flag on box users:create and box users:update is now called --exempt-from-device-limits
  • The --not-exempt-from-device-limits flag on box users:create and box users:update is now called --no-exempt-from-device-limits
  • The --is-exempt-login-verification flag on box users:create and box users:update is now called --exempt-from-2fa
  • The --not-exempt-login-verification flag on box users:create and box users:update is now called --no-exempt-from-2fa
  • The --parent-folder flag on box files:upload is now called --parent-id for consistency with other commands
  • The box storage-policies:assign command no longer takes two arguments (a type and ID), and instead now takes one argument (the ID) and has a --type flag with default value "user" to make the command easier to run for common use cases
  • The box webhooks:create command no longer takes four arguments (target type, target ID, triggers, and URL), but instead now takes two arguments (the target type and ID) and has two new flags: --triggers and --address to make it easier to specify without needing to remember the argument order
  • The --limit flag on box users:list and box collaborations:list-for-group has been removed; all results will be returned by default
  • The short code for the box users:create --status flag was changed from -s to -S to disambiguate from the global --save flag
  • The short code for the box webhooks:update --triggers flag was changed from -t to -T to disambiguate from the global --token flag
  • The bulk input file format for box collaborations:add has changed; see --help for more details

Bug Fixes

  • The --json flag in the search command works correctly now
  • Windows absolute paths without the drive letter (e.g. \MyFolder\file.pdf) now work correctly
  • Uploading files over 4 GB in size now works correctly
  • Listing the items in a folder with more than 300,000 items should no longer fail with an invalid offset error
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc