# DMCode | Tool That Allows You To Upload Your Code To An FTP Server Without Any FTP-Clients

**URL:** <https://onehack.st/t/dmcode-tool-that-allows-you-to-upload-your-code-to-an-ftp-server-without-any-ftp-clients/66447>\
**Category:** Tools & Scripts\
**Tags:** programming, business, hosting\
**Created:** [January 20, 2020, 4:06pm UTC](https://onehack.st/t/dmcode-tool-that-allows-you-to-upload-your-code-to-an-ftp-server-without-any-ftp-clients/66447 "2020-01-20T16:06:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aina](https://onehack.st/user_avatar/onehack.st/aina/32/167469_2.png) [@Aina](https://onehack.st/u/Aina)\
**Post date:** [January 20, 2020, 4:06pm UTC](https://onehack.st/t/dmcode-tool-that-allows-you-to-upload-your-code-to-an-ftp-server-without-any-ftp-clients/66447/1 "2020-01-20T16:06:35Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/4/9/49dcecf5c5cc56a2ff853c2076970b09e1dc0223.png)

## DMC ( _Deploy My Code_ )

**DMC** ode – like a _deploy my code_ Allows you to upload your code to an ftp server without any ftp/sftp clients.

 ![image](https://onehack.st/uploads/default/original/3X/3/f/3fdd148294cb0a8f6d13c6d0eb65cee362430031.png)

### why is this needed?

for example, you need to quickly deploy code or files to a remote ftp or sftp server directly from a directory with easy-to-understand console commands.

### Where is working?

- Linux
- MacOS
- Windows

### TODO v1.0

- ~~add sftp support~~ _available in v.0.2_
- add mysql backup restore
- ask user when replacing file [–replace ASK|NOT|default: replace all]

### dmc.ini

Using the configuration file **dmc.ini** , you can exclude directories, files or file extensions that you do not need, and more. Just execute the command in the desired directory for **ftp** :

```auto
dmcode –ftp

```

or for **sftp** :

```auto
dmcode –sftp

```

or specify **ftp** settings right away:

```auto
dmcode –ftp|–sftp –host –port –password –path /var/www/html

```

this is to create a configuration file **dmc.ini** that you can edit.

```auto
[DMC] 
only_ext = !not working! 
ignore_ext = ignored extensions for upload
ignore_files = ignored file names for upload
ignore_dirs = ignored directory names for upload
max_size_dir = allowed maximal directory size for upload (in Bytes)
max_size_file = allowed maximal file size for upload (in Bytes)

```

## Setup

```auto
pip install dmcode

```

or

```auto
git clone https://github.com/foozzi/dmcode.git && cd dmcode python setup.py install

```

 ![image](https://onehack.st/uploads/default/original/3X/4/9/49dcecf5c5cc56a2ff853c2076970b09e1dc0223.png)

## Deploy your code

Just execute:

```auto
dmcode –dmc_ftp|–dmc_sftp

```

[Download dmcode](https://github.com/foozzi/dmcode)

## ENJOY! 👍

---

<div class="post-metadata">

**Author:** ![Anbarasan\_Vellayan](https://onehack.st/user_avatar/onehack.st/anbarasan_vellayan/32/29242_2.png) [@Anbarasan\_Vellayan](https://onehack.st/u/Anbarasan_Vellayan)\
**Post date:** [January 21, 2020, 11:25am UTC](https://onehack.st/t/dmcode-tool-that-allows-you-to-upload-your-code-to-an-ftp-server-without-any-ftp-clients/66447/2 "2020-01-21T11:25:21Z")

</div>

Awesome post Sam!

---

<div class="post-metadata">

**Author:** ![Mountakha\_NDIAYE](https://onehack.st/user_avatar/onehack.st/mountakha_ndiaye/32/23627_2.png) [@Mountakha\_NDIAYE](https://onehack.st/u/Mountakha_NDIAYE)\
**Post date:** [January 21, 2020, 9:19pm UTC](https://onehack.st/t/dmcode-tool-that-allows-you-to-upload-your-code-to-an-ftp-server-without-any-ftp-clients/66447/3 "2020-01-21T21:19:46Z")

</div>

Very nice tool.

Thanks a bundle, dear Chief SAM !
