PHPackages                             oscarnevarezleal/laravel-sed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. oscarnevarezleal/laravel-sed

ActiveLibrary[CLI &amp; Console](/categories/cli)

oscarnevarezleal/laravel-sed
============================

Larased CLI

0.0.4(4y ago)17.4k[1 issues](https://github.com/oscarnevarezleal/laravel-sed/issues)[1 PRs](https://github.com/oscarnevarezleal/laravel-sed/pulls)MITPHPPHP ^7.3|^8.0

Since Mar 9Pushed 2y agoCompare

[ Source](https://github.com/oscarnevarezleal/laravel-sed)[ Packagist](https://packagist.org/packages/oscarnevarezleal/laravel-sed)[ RSS](/packages/oscarnevarezleal-laravel-sed/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (5)Dependencies (16)Versions (10)Used By (0)

Laravel SED
===========

[](#laravel-sed)

A CLI utility that modifies [Laravel](https://laravel.com/docs/8.x/#initial-configuration) configuration files.

> **Note:** This project is primarily intended as CLI tool to manage laravel applications from the outside, although it contains several laravel commands expect that the majority of features will be unavailable as Laravel commands.

Installation
------------

[](#installation)

```
composer global require oscarnevarezleal/laravel-sed
```

Usage
-----

[](#usage)

```
Larased 0.0.4

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help                  Displays help for a command
  list                  Lists commands
 larased
  larased:config-edit   Edits a config file
```

### Commands

[](#commands)

CommandDescriptionArgumentslarased:config-editReplace configuration value`$config-path $value [options]`### Options

[](#options)

Short versionLong versionComments-d--basePathThe working directory-e--envorWhen this option is specified, the substitution will have a call to the *env* function using as 1st argument the value taken from the environment key specified and secondly a literal value or another *env* call when using chained envs (See Environment chain in the examples section )Concepts
--------

[](#concepts)

Before dive in into the examples, a previous step is to clarify what a config path is so you know how to use it when editing Laravel configuration files.

> **Config Paths**
>
> Most of the commands expect a valid `config-path` to work with.
>
> Config paths consists of two parts joined by a slash.
>
> The first part is the relative path of the file to be modified seen from the root of the project and, without especial characters nor file extensions.
>
> The second part is the array property path found in the file.
>
> **Example**
>
> A property *name* in `./config/app.php` became the config path `config.app/name`
>
> A nested property such as the user in a mysql connection configured in `./config/database.php` became the `config.database/connections.mysql.user`

Examples
--------

[](#examples)

### Literal values

[](#literal-values)

Take the following part of the configuration file `config/app.php` for instance.

```
# config/app.php
